From 07089e473d6f2e08db0038e8abfe403c213059ad Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 6 May 2008 08:24:11 +0000 Subject: [PATCH] Avoided to report negative burn_multi_caps.start_range_high with DVD-RW --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/drive.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 3d1234e1..1c582458 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2008.04.27.140144" +#define Cdrskin_timestamP "2008.05.06.082429" diff --git a/libburn/trunk/libburn/drive.c b/libburn/trunk/libburn/drive.c index c48ed0b7..d37ef858 100644 --- a/libburn/trunk/libburn/drive.c +++ b/libburn/trunk/libburn/drive.c @@ -2193,6 +2193,8 @@ int burn_disc_get_multi_caps(struct burn_drive *d, enum burn_write_types wt, } if (i >= num_formats) /* not expandable */ o->start_range_high -= 32 * 1024; + if (o->start_range_high < 0) + o->start_range_high = 0; } else { o->start_alignment = 2 * 1024; if (d->best_format_size - 2048 >