From 61e2176d03655f82e16871d291c07b961a27bffd Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 3 May 2014 10:37:07 +0000 Subject: [PATCH] Bug fix: A failed MMC BLANK command did not cause error indication by libburn --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/mmc.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 20fff4a..02fc0d2 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2014.04.29.061645" +#define Cdrskin_timestamP "2014.05.03.103448" diff --git a/libburn/mmc.c b/libburn/mmc.c index 39e9e94..cf08e80 100644 --- a/libburn/mmc.c +++ b/libburn/mmc.c @@ -2680,6 +2680,10 @@ void mmc_erase(struct burn_drive *d, int fast) c->dir = NO_TRANSFER; c->timeout = Libburn_mmc_blank_timeouT; d->issue_command(d, c); + if (c->error) { + d->cancel = 1; + scsi_notify_error(d, c, c->sense, 14, 2); + } } void mmc_read_lead_in(struct burn_drive *d, struct buffer *buf)