Let xorrecord -atip throw SORRY on empty tray, but report profile list of drive
This commit is contained in:
parent
d88872e600
commit
554a64112d
@ -1670,7 +1670,7 @@ int Xorriso_list_profiles(struct XorrisO *xorriso, int flag)
|
||||
int Xorriso_atip(struct XorrisO *xorriso, int flag)
|
||||
{
|
||||
int ret, profile_number= 0;
|
||||
int num_profiles= 0, profiles[64], i, can_write= 0, pf;
|
||||
int num_profiles= 0, profiles[64], i, can_write= 0, pf, no_medium= 0;
|
||||
char is_current[64];
|
||||
char *respt, profile_name[80];
|
||||
double x_speed_max, x_speed_min= -1.0;
|
||||
@ -1753,11 +1753,15 @@ int Xorriso_atip(struct XorrisO *xorriso, int flag)
|
||||
if(s==BURN_DISC_EMPTY) {
|
||||
sprintf(respt, "Current: none\n");
|
||||
Xorriso_result(xorriso,1);
|
||||
return(1);
|
||||
sprintf(xorriso->info_text, "No recognizable medium found in drive");
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "SORRY", 0);
|
||||
no_medium= 1;
|
||||
} else
|
||||
sprintf(respt, "Current: %s\n",profile_name);
|
||||
Xorriso_result(xorriso,1);
|
||||
Xorriso_list_profiles(xorriso, 1 | 2);
|
||||
if(no_medium)
|
||||
return(1);
|
||||
if(strstr(profile_name,"BD")==profile_name) {
|
||||
printf("Mounted Media: %2.2Xh, %s\n", profile_number, profile_name);
|
||||
} else if(strstr(profile_name,"DVD")==profile_name) {
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2011.10.25.160042"
|
||||
#define Xorriso_timestamP "2011.10.26.085213"
|
||||
|
Loading…
Reference in New Issue
Block a user