From a27a1ae530d1462f1daf9477d3809a99b5c3051f Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 19 May 2011 13:37:16 +0000 Subject: [PATCH] Bug fix: The attempt to blank already blanked DVD-RW was not gracefully blocked --- xorriso/write_run.c | 12 ++++++++---- xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/xorriso/write_run.c b/xorriso/write_run.c index 99c0534d..d9473b5f 100644 --- a/xorriso/write_run.c +++ b/xorriso/write_run.c @@ -1304,10 +1304,14 @@ int Xorriso_blank_media(struct XorrisO *xorriso, int flag) Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "HINT", 0); flag&= ~1; } - } else if(disc_state == BURN_DISC_BLANK) { - sprintf(xorriso->info_text,"Blank media detected. Will leave it untouched"); - Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "NOTE", 0); - return 2; + } + if(disc_state == BURN_DISC_BLANK) { + if(!do_deformat) { + sprintf(xorriso->info_text, + "Blank media detected. Will leave it untouched"); + Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "NOTE", 0); + return 2; + } } else if(disc_state==BURN_DISC_FULL || disc_state==BURN_DISC_APPENDABLE) { ; } else if(disc_state == BURN_DISC_EMPTY) { diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index 85f84f1a..f3590223 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2011.05.19.111229" +#define Xorriso_timestamP "2011.05.19.133735"