From 8222fbcd49b2ec281da457b2c444d96d8d527bb2 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 23 Sep 2007 15:55:18 +0000 Subject: [PATCH] Called isoburn_create_data_source() and isoburn_free_data_source() --- libisoburn/trunk/src/burn_wrap.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/libisoburn/trunk/src/burn_wrap.c b/libisoburn/trunk/src/burn_wrap.c index ff1fb7f4..c147a01d 100644 --- a/libisoburn/trunk/src/burn_wrap.c +++ b/libisoburn/trunk/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); }