From 214d6e67414bcc2f070085f672f9d35cd72ce7de Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 29 Mar 2010 10:35:22 +0000 Subject: [PATCH] Avoided to declare empty tray as written media --- libisoburn/burn_wrap.c | 4 +++- xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libisoburn/burn_wrap.c b/libisoburn/burn_wrap.c index 9e6cedb3..b820b9ec 100644 --- a/libisoburn/burn_wrap.c +++ b/libisoburn/burn_wrap.c @@ -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: diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index 8b7fc2ec..5507cdb9 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2010.03.21.124517" +#define Xorriso_timestamP "2010.03.29.103419"