Made xorriso issue a filure message if blanking was not successful

This commit is contained in:
Thomas Schmitt 2010-01-17 14:50:00 +00:00
parent f39b0be7d6
commit 3a10093e3d
2 changed files with 9 additions and 3 deletions

View File

@ -1 +1 @@
#define Xorriso_timestamP "2010.01.17.145019"
#define Xorriso_timestamP "2010.01.17.145139"

View File

@ -5778,8 +5778,14 @@ int Xorriso_blank_media(struct XorrisO *xorriso, int flag)
usleep(1000000);
}
Xorriso_process_msg_queues(xorriso,0);
sprintf(xorriso->info_text, "Blanking done\n");
Xorriso_info(xorriso,0);
if(burn_drive_wrote_well(drive)) {
sprintf(xorriso->info_text, "Blanking done\n");
Xorriso_info(xorriso,0);
} else {
sprintf(xorriso->info_text, "Blanking failed.");
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
}
if(!(flag & 4)) {
ret= Xorriso_reaquire_outdev(xorriso,
2 + (xorriso->in_drive_handle == xorriso->out_drive_handle));