Bug fix: The attempt to blank already blanked DVD-RW was not gracefully blocked

This commit is contained in:
Thomas Schmitt 2011-05-19 13:37:16 +00:00
parent 30e97c7e7a
commit a27a1ae530
2 changed files with 9 additions and 5 deletions

View File

@ -1304,10 +1304,14 @@ int Xorriso_blank_media(struct XorrisO *xorriso, int flag)
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "HINT", 0); Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "HINT", 0);
flag&= ~1; flag&= ~1;
} }
} else if(disc_state == BURN_DISC_BLANK) { }
sprintf(xorriso->info_text,"Blank media detected. Will leave it untouched"); if(disc_state == BURN_DISC_BLANK) {
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "NOTE", 0); if(!do_deformat) {
return 2; 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_FULL || disc_state==BURN_DISC_APPENDABLE) {
; ;
} else if(disc_state == BURN_DISC_EMPTY) { } else if(disc_state == BURN_DISC_EMPTY) {

View File

@ -1 +1 @@
#define Xorriso_timestamP "2011.05.19.111229" #define Xorriso_timestamP "2011.05.19.133735"