Improved -atip and -minfo with empty drive

This commit is contained in:
Thomas Schmitt 2011-07-12 15:53:56 +00:00
parent 34c86e88d9
commit 58d8f3b3c2
2 changed files with 14 additions and 15 deletions

View File

@ -5402,16 +5402,8 @@ int Cdrskin_atip(struct CdrskiN *skin, int flag)
drive= skin->drives[skin->driveno].drive;
s= burn_disc_get_status(drive);
Cdrskin_report_disc_status(skin,s,1|2);
if(s==BURN_DISC_APPENDABLE && skin->no_blank_appendable) {
if(s==BURN_DISC_APPENDABLE && skin->no_blank_appendable)
is_not_really_erasable= 1;
} else if(s==BURN_DISC_EMPTY) {
if(skin->verbosity>=Cdrskin_verbose_progresS) {
printf("Current: none\n");
Cdrskin_print_all_profiles(skin, drive, 0);
}
ret= 0; goto ex;
}
#ifdef Cdrskin_atip_speed_brokeN
@ -5508,13 +5500,17 @@ int Cdrskin_atip(struct CdrskiN *skin, int flag)
}
#endif /* Cdrskin_libburn_has_burn_disc_unsuitablE */
ret= burn_drive_get_write_speed(drive);
x_speed_max= ((double) ret)/Cdrskin_libburn_speed_factoR;
if(x_speed_min<0)
x_speed_min= x_speed_max;
if(burn_disc_get_status(drive) != BURN_DISC_EMPTY) {
ret= burn_drive_get_write_speed(drive);
x_speed_max= ((double) ret)/Cdrskin_libburn_speed_factoR;
if(x_speed_min<0)
x_speed_min= x_speed_max;
}
printf("cdrskin: burn_drive_get_write_speed = %d (%.1fx)\n",ret,x_speed_max);
if(skin->verbosity>=Cdrskin_verbose_progresS) {
if(profile_name[0])
if(burn_disc_get_status(drive) == BURN_DISC_EMPTY)
printf("Current: none\n");
else if(profile_name[0])
printf("Current: %s\n",profile_name);
else if(burn_disc_erasable(drive))
printf("Current: CD-RW\n");
@ -5523,6 +5519,9 @@ int Cdrskin_atip(struct CdrskiN *skin, int flag)
Cdrskin_print_all_profiles(skin, drive, 0);
}
if(burn_disc_get_status(drive) == BURN_DISC_EMPTY)
{ret= 0; goto ex;}
if(strstr(profile_name,"DVD")==profile_name) {
/* These are dummy messages for project scdbackup, so its media recognition
gets a hint that the media is suitable and not in need of blanking.

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2011.07.12.142141"
#define Cdrskin_timestamP "2011.07.12.155335"