Avoided to declare empty tray as written media
This commit is contained in:
parent
0c655d438e
commit
214d6e6741
@ -282,7 +282,9 @@ static int isoburn_welcome_media(struct isoburn **o, struct burn_drive *d,
|
|||||||
struct isoburn_toc_track **tracks;
|
struct isoburn_toc_track **tracks;
|
||||||
int num_sessions= 0, num_tracks= 0, track_count= 0, session_no= 0;
|
int num_sessions= 0, num_tracks= 0, track_count= 0, session_no= 0;
|
||||||
char msg[80];
|
char msg[80];
|
||||||
|
enum burn_disc_status s;
|
||||||
|
|
||||||
|
s= burn_disc_get_status(d);
|
||||||
profile_name[0]= 0;
|
profile_name[0]= 0;
|
||||||
ret= burn_disc_get_profile(d, &profile, profile_name);
|
ret= burn_disc_get_profile(d, &profile, profile_name);
|
||||||
if(ret<=0)
|
if(ret<=0)
|
||||||
@ -339,7 +341,7 @@ static int isoburn_welcome_media(struct isoburn **o, struct burn_drive *d,
|
|||||||
|
|
||||||
/* >>> recognize unsuitable media (but allow read-only media) */;
|
/* >>> recognize unsuitable media (but allow read-only media) */;
|
||||||
|
|
||||||
if(readonly) {
|
if(readonly && s != BURN_DISC_EMPTY) {
|
||||||
(*o)->fabricated_disc_status= BURN_DISC_FULL;
|
(*o)->fabricated_disc_status= BURN_DISC_FULL;
|
||||||
/* This might be overwriteable media in a -ROM drive.
|
/* This might be overwriteable media in a -ROM drive.
|
||||||
Pitfall:
|
Pitfall:
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2010.03.21.124517"
|
#define Xorriso_timestamP "2010.03.29.103419"
|
||||||
|
Loading…
Reference in New Issue
Block a user