Improved -atip and -minfo with empty drive
This commit is contained in:
parent
34c86e88d9
commit
58d8f3b3c2
@ -5402,16 +5402,8 @@ int Cdrskin_atip(struct CdrskiN *skin, int flag)
|
|||||||
drive= skin->drives[skin->driveno].drive;
|
drive= skin->drives[skin->driveno].drive;
|
||||||
s= burn_disc_get_status(drive);
|
s= burn_disc_get_status(drive);
|
||||||
Cdrskin_report_disc_status(skin,s,1|2);
|
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;
|
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
|
#ifdef Cdrskin_atip_speed_brokeN
|
||||||
|
|
||||||
@ -5508,13 +5500,17 @@ int Cdrskin_atip(struct CdrskiN *skin, int flag)
|
|||||||
}
|
}
|
||||||
#endif /* Cdrskin_libburn_has_burn_disc_unsuitablE */
|
#endif /* Cdrskin_libburn_has_burn_disc_unsuitablE */
|
||||||
|
|
||||||
ret= burn_drive_get_write_speed(drive);
|
if(burn_disc_get_status(drive) != BURN_DISC_EMPTY) {
|
||||||
x_speed_max= ((double) ret)/Cdrskin_libburn_speed_factoR;
|
ret= burn_drive_get_write_speed(drive);
|
||||||
if(x_speed_min<0)
|
x_speed_max= ((double) ret)/Cdrskin_libburn_speed_factoR;
|
||||||
x_speed_min= x_speed_max;
|
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);
|
printf("cdrskin: burn_drive_get_write_speed = %d (%.1fx)\n",ret,x_speed_max);
|
||||||
if(skin->verbosity>=Cdrskin_verbose_progresS) {
|
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);
|
printf("Current: %s\n",profile_name);
|
||||||
else if(burn_disc_erasable(drive))
|
else if(burn_disc_erasable(drive))
|
||||||
printf("Current: CD-RW\n");
|
printf("Current: CD-RW\n");
|
||||||
@ -5523,6 +5519,9 @@ int Cdrskin_atip(struct CdrskiN *skin, int flag)
|
|||||||
Cdrskin_print_all_profiles(skin, drive, 0);
|
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) {
|
if(strstr(profile_name,"DVD")==profile_name) {
|
||||||
/* These are dummy messages for project scdbackup, so its media recognition
|
/* 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.
|
gets a hint that the media is suitable and not in need of blanking.
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2011.07.12.142141"
|
#define Cdrskin_timestamP "2011.07.12.155335"
|
||||||
|
Loading…
Reference in New Issue
Block a user