Commit 6e17c59f authored by Thomas Schmitt's avatar Thomas Schmitt

Avoiding to inquire NWA of unwritable media or states

parent 0e777ec6
#define Cdrskin_timestamP "2010.03.26.083158"
#define Cdrskin_timestamP "2010.03.27.155659"
......@@ -425,6 +425,10 @@ int mmc_get_nwa(struct burn_drive *d, int trackno, int *lba, int *nwa)
if (mmc_function_spy(d, "mmc_get_nwa") <= 0)
return -1;
/* ts B00327 : Avoid to inquire unsuitable media states */
if (d->status != BURN_DISC_BLANK && d->status != BURN_DISC_APPENDABLE)
return 0;
ret = mmc_read_track_info(d, trackno, &buf, alloc_len);
if (ret <= 0)
return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment