From 3d0c97541fc1a9134e908132b09b914a9932116b Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 6 May 2008 08:41:48 +0000 Subject: [PATCH] Mapped undefined size to 0 with burn_disc_get_formats() and DVD-RW --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/mmc.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 1c582458..614fb937 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2008.05.06.082429" +#define Cdrskin_timestamP "2008.05.06.084156" diff --git a/libburn/trunk/libburn/mmc.c b/libburn/trunk/libburn/mmc.c index 492e5525..e7cc3280 100644 --- a/libburn/trunk/libburn/mmc.c +++ b/libburn/trunk/libburn/mmc.c @@ -2354,6 +2354,8 @@ static int mmc_read_format_capacities_al(struct burn_drive *d, d->format_descr_type = dpt[4] & 3; d->format_curr_max_size = (((off_t) dpt[0]) << 24) + (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]; /* <<<