Mapped undefined size to 0 with burn_disc_get_formats() and DVD-RW
This commit is contained in:
parent
07089e473d
commit
3d0c97541f
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2008.05.06.082429"
|
#define Cdrskin_timestamP "2008.05.06.084156"
|
||||||
|
@ -2354,6 +2354,8 @@ static int mmc_read_format_capacities_al(struct burn_drive *d,
|
|||||||
d->format_descr_type = dpt[4] & 3;
|
d->format_descr_type = dpt[4] & 3;
|
||||||
d->format_curr_max_size = (((off_t) dpt[0]) << 24)
|
d->format_curr_max_size = (((off_t) dpt[0]) << 24)
|
||||||
+ (dpt[1] << 16) + (dpt[2] << 8) + dpt[3];
|
+ (dpt[1] << 16) + (dpt[2] << 8) + dpt[3];
|
||||||
|
if (d->format_descr_type == BURN_FORMAT_IS_UNKNOWN)
|
||||||
|
d->format_curr_max_size = 0;
|
||||||
d->format_curr_blsas = (dpt[5] << 16) + (dpt[6] << 8) + dpt[7];
|
d->format_curr_blsas = (dpt[5] << 16) + (dpt[6] << 8) + dpt[7];
|
||||||
|
|
||||||
/* <<<
|
/* <<<
|
||||||
|
Loading…
Reference in New Issue
Block a user