Add a set_size function to burn_source to fix sigsegv.
This commit is contained in:
parent
a0c41b7563
commit
23cb7b9816
@ -908,6 +908,11 @@ bs_free_data(struct burn_source *bs)
|
||||
t->state_files.src->close(t->state_files.src);
|
||||
}
|
||||
|
||||
int bs_set_size(struct burn_source *source, off_t size)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
struct burn_source *iso_source_new_ecma119(struct iso_volset *volset,
|
||||
struct ecma119_source_opts *opts)
|
||||
{
|
||||
@ -915,6 +920,7 @@ struct burn_source *iso_source_new_ecma119(struct iso_volset *volset,
|
||||
ret->refcount = 1;
|
||||
ret->read = bs_read;
|
||||
ret->get_size = bs_get_size;
|
||||
ret->set_size = bs_set_size;
|
||||
ret->free_data = bs_free_data;
|
||||
ret->data = ecma119_target_new(volset, opts);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user