Avoided to declare empty tray as written media

This commit is contained in:
Thomas Schmitt 2010-03-29 10:35:22 +00:00
parent 0c655d438e
commit 214d6e6741
2 changed files with 4 additions and 2 deletions

View File

@ -282,7 +282,9 @@ static int isoburn_welcome_media(struct isoburn **o, struct burn_drive *d,
struct isoburn_toc_track **tracks;
int num_sessions= 0, num_tracks= 0, track_count= 0, session_no= 0;
char msg[80];
enum burn_disc_status s;
s= burn_disc_get_status(d);
profile_name[0]= 0;
ret= burn_disc_get_profile(d, &profile, profile_name);
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) */;
if(readonly) {
if(readonly && s != BURN_DISC_EMPTY) {
(*o)->fabricated_disc_status= BURN_DISC_FULL;
/* This might be overwriteable media in a -ROM drive.
Pitfall:

View File

@ -1 +1 @@
#define Xorriso_timestamP "2010.03.21.124517"
#define Xorriso_timestamP "2010.03.29.103419"