Bug fix: xorriso native mode on some drives wrote unreadble ISO images to CD

This commit is contained in:
Thomas Schmitt 2011-07-31 09:18:56 +00:00
parent 44dea991a6
commit b781379df2
2 changed files with 6 additions and 1 deletions

View File

@ -784,6 +784,7 @@ int isoburn_disc_track_lba_nwa(struct burn_drive *d,
{ {
int ret; int ret;
struct isoburn *o; struct isoburn *o;
enum burn_disc_status s;
#ifdef Hardcoded_cd_rW #ifdef Hardcoded_cd_rW
/* <<< A70929 : hardcoded CD-RW with fabricated -msinfo */ /* <<< A70929 : hardcoded CD-RW with fabricated -msinfo */
@ -803,6 +804,10 @@ int isoburn_disc_track_lba_nwa(struct burn_drive *d,
} }
if(burn_drive_get_drive_role(d) != 1) if(burn_drive_get_drive_role(d) != 1)
return(1); return(1);
s= isoburn_disc_get_status(d);
if(s == BURN_DISC_BLANK) /* We do not believe in anything but nwa = lba = 0 */
return(1);
return(burn_disc_track_lba_nwa(d, opts, trackno, lba, nwa)); return(burn_disc_track_lba_nwa(d, opts, trackno, lba, nwa));
} }

View File

@ -1 +1 @@
#define Xorriso_timestamP "2011.07.28.195103" #define Xorriso_timestamP "2011.07.31.091836"