Made clear that a drive needs an isoburn object for writing. Coverity CID 28758.
This commit is contained in:
parent
089ff7586c
commit
9efb046330
@ -920,7 +920,13 @@ void isoburn_disc_write(struct burn_write_opts *opts, struct burn_disc *disc)
|
|||||||
ret= isoburn_find_emulator(&o, drive, 0);
|
ret= isoburn_find_emulator(&o, drive, 0);
|
||||||
if(ret<0)
|
if(ret<0)
|
||||||
goto ex;
|
goto ex;
|
||||||
if(o!=NULL) {
|
if(o == NULL) {
|
||||||
|
sprintf(msg,
|
||||||
|
"Program error: Cannot find isoburn object associated to the drive");
|
||||||
|
isoburn_msgs_submit(o, 0x00060000, msg, 0, "FAILURE", 0);
|
||||||
|
burn_drive_cancel(drive);
|
||||||
|
goto ex;
|
||||||
|
}
|
||||||
o->wrote_well= -1;
|
o->wrote_well= -1;
|
||||||
if(o->emulation_mode!=0) {
|
if(o->emulation_mode!=0) {
|
||||||
burn_write_opts_set_multi(opts, 0);
|
burn_write_opts_set_multi(opts, 0);
|
||||||
@ -955,7 +961,6 @@ void isoburn_disc_write(struct burn_write_opts *opts, struct burn_disc *disc)
|
|||||||
burn_write_opts_set_start_byte(opts, nwa * (off_t) 2048);
|
burn_write_opts_set_start_byte(opts, nwa * (off_t) 2048);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if(o->do_tao) {
|
if(o->do_tao) {
|
||||||
if (o->do_tao > 0)
|
if (o->do_tao > 0)
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2015.11.03.150839"
|
#define Xorriso_timestamP "2015.11.03.154102"
|
||||||
|
Loading…
Reference in New Issue
Block a user