From d9ef40e39ce2f38072b091559461e4c201e42088 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 9 Sep 2007 18:28:05 +0000 Subject: [PATCH] Ended falsely alleged erasability of DVD-RAM and DVD+RW --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/async.c | 3 +++ libburn/trunk/libburn/mmc.c | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 186f17af..712fbd9a 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2007.09.09.133922" +#define Cdrskin_timestamP "2007.09.09.182827" diff --git a/libburn/trunk/libburn/async.c b/libburn/trunk/libburn/async.c index 5b51b4b0..6f05d42c 100644 --- a/libburn/trunk/libburn/async.c +++ b/libburn/trunk/libburn/async.c @@ -244,6 +244,9 @@ void burn_disc_erase(struct burn_drive *drive, int fast) /* ts A70131 : allow blanking of overwriteable DVD-RW (profile 0x13) */ /* ts A70216 : allow blanking of CD-RW or DVD-RW in any regular state and of any kind of full media */ + /* ts A70909 : the willingness to burn any BURN_DISC_FULL media is + inappropriate. One would rather need a -force option + Note: keep this in sync with mmc_read_disc_info() */ if ((drive->current_profile != 0x0a && drive->current_profile != 0x13 && drive->current_profile != 0x14 && diff --git a/libburn/trunk/libburn/mmc.c b/libburn/trunk/libburn/mmc.c index 1eee05bb..095d6c23 100644 --- a/libburn/trunk/libburn/mmc.c +++ b/libburn/trunk/libburn/mmc.c @@ -1306,6 +1306,9 @@ static int mmc_read_disc_info_al(struct burn_drive *d, int *alloc_len) appendable. I.e number of complete tracks + 1. */ d->last_track_no = (data[11] << 8) | data[6]; } + if (d->current_profile != 0x0a && d->current_profile != 0x13 && + d->current_profile != 0x14 && d->status != BURN_DISC_FULL) + d->erasable = 0; /* stay in sync with burn_disc_erase() */ if (do_read_toc) mmc_read_toc(d);