Called isoburn_create_data_source() and isoburn_free_data_source()

master
Thomas Schmitt 15 years ago
parent cff1144b0e
commit db6fc81ea8
  1. 16
      src/burn_wrap.c

@ -57,6 +57,9 @@ static int isoburn_welcome_media(struct isoburn **o, struct burn_drive *d,
if(ret<=0)
goto ex;
(*o)->drive= d;
ret= isoburn_create_data_source(*o);
if(ret<=0)
goto ex;
if(caps->start_adr) { /* set emulation to overwriteable */
(*o)->emulation_mode= 1;
ret= isoburn_start_emulation(*o, 0);
@ -69,15 +72,6 @@ static int isoburn_welcome_media(struct isoburn **o, struct burn_drive *d,
/* >>> recognize unsuitable media */;
}
/* <<< now planned to be done by app
ret = isoburn_read_volset(*o);
if(ret<=0) {
(*o)->emulation_mode= -1;
goto ex;
}
*/
ret= 1;
ex:
if(caps!=NULL)
@ -282,8 +276,10 @@ void isoburn_drive_release(struct burn_drive *drive, int eject)
ret= isoburn_find_emulator(&o, drive, 0);
if(ret<0)
return;
if(o!=NULL)
if(o!=NULL) {
isoburn_free_data_source(o);
isoburn_destroy(&o, 0);
}
burn_drive_release(drive, eject);
}

Loading…
Cancel
Save