Bug fix: Some drives return -150 as NWA of blank CD, rather than 0

This commit is contained in:
2011-07-31 08:31:11 +00:00
parent b0a4b7c15c
commit 62944e3b21
3 changed files with 8 additions and 3 deletions

View File

@@ -444,6 +444,11 @@ int mmc_get_nwa(struct burn_drive *d, int trackno, int *lba, int *nwa)
*nwa = mmc_four_char_to_int(data + 12);
num = mmc_four_char_to_int(data + 16);
/* Pioneer BD-RW BDR-205 and LITE-ON LTR-48125S return -150 as *nwa
of blank media */
if (*nwa < *lba && d->status == BURN_DISC_BLANK)
*nwa = *lba;
#ifdef Libburn_pioneer_dvr_216d_load_mode5
/* >>> memorize track mode : data[6] & 0xf */;
#endif