Made xorriso issue a filure message if blanking was not successful
This commit is contained in:
parent
f39b0be7d6
commit
3a10093e3d
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2010.01.17.145019"
|
||||
#define Xorriso_timestamP "2010.01.17.145139"
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user