Called isoburn_create_data_source() and isoburn_free_data_source()
This commit is contained in:
parent
cff1144b0e
commit
db6fc81ea8
@ -57,6 +57,9 @@ static int isoburn_welcome_media(struct isoburn **o, struct burn_drive *d,
|
|||||||
if(ret<=0)
|
if(ret<=0)
|
||||||
goto ex;
|
goto ex;
|
||||||
(*o)->drive= d;
|
(*o)->drive= d;
|
||||||
|
ret= isoburn_create_data_source(*o);
|
||||||
|
if(ret<=0)
|
||||||
|
goto ex;
|
||||||
if(caps->start_adr) { /* set emulation to overwriteable */
|
if(caps->start_adr) { /* set emulation to overwriteable */
|
||||||
(*o)->emulation_mode= 1;
|
(*o)->emulation_mode= 1;
|
||||||
ret= isoburn_start_emulation(*o, 0);
|
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 */;
|
/* >>> 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;
|
ret= 1;
|
||||||
ex:
|
ex:
|
||||||
if(caps!=NULL)
|
if(caps!=NULL)
|
||||||
@ -282,8 +276,10 @@ void isoburn_drive_release(struct burn_drive *drive, int eject)
|
|||||||
ret= isoburn_find_emulator(&o, drive, 0);
|
ret= isoburn_find_emulator(&o, drive, 0);
|
||||||
if(ret<0)
|
if(ret<0)
|
||||||
return;
|
return;
|
||||||
if(o!=NULL)
|
if(o!=NULL) {
|
||||||
|
isoburn_free_data_source(o);
|
||||||
isoburn_destroy(&o, 0);
|
isoburn_destroy(&o, 0);
|
||||||
|
}
|
||||||
burn_drive_release(drive, eject);
|
burn_drive_release(drive, eject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user