isoburn_read_volset() now hands out an official volset reference
This commit is contained in:
@@ -137,6 +137,7 @@ int isoburn_read_volset(struct burn_drive *d, struct isoburn_read_opts *read_opt
|
||||
return -3;
|
||||
|
||||
o->target_volset = *volset;
|
||||
iso_volset_ref(o->target_volset); /* protects object from premature free */
|
||||
|
||||
read_opts->hasRR = ropts.hasRR;
|
||||
read_opts->hasJoliet = ropts.hasJoliet;
|
||||
@@ -211,7 +212,7 @@ int isoburn_start_emulation(struct isoburn *o, int flag)
|
||||
drive= o->drive;
|
||||
|
||||
/* we can assume 0 as start block for image */
|
||||
// TODO what about ms? where we validate valid iso image in ms disc?
|
||||
/* TODO what about ms? where we validate valid iso image in ms disc? */
|
||||
ret = burn_read_data(drive, (off_t) 0, (char*)o->target_iso_head,
|
||||
sizeof(o->target_iso_head), &data_count, 1);
|
||||
|
||||
@@ -240,7 +241,7 @@ int isoburn_start_emulation(struct isoburn *o, int flag)
|
||||
/* sanity check */
|
||||
if (pvm->vol_desc_type[0] != 1 || pvm->vol_desc_version[0] != 1
|
||||
|| pvm->file_structure_version[0] != 1 ) {
|
||||
// TODO for now I treat this as a full disc
|
||||
/* TODO for now I treat this as a full disc */
|
||||
o->fabricated_disc_status= BURN_DISC_FULL;
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user