New IsoStream_Iface.version 2 with method .get_input_stream(),
new API function iso_stream_get_input_stream(), new API function iso_file_remove_filter(), iso_file_get_old_image_sections() now refers to the most original stream of a file.
This commit is contained in:
@ -47,3 +47,20 @@ int iso_file_add_filter(IsoFile *file, FilterContext *filter, int flag)
|
||||
file->stream = filtered;
|
||||
return ISO_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
/* ts A90328 */
|
||||
int iso_file_remove_filter(IsoFile *file, int flag)
|
||||
{
|
||||
IsoStream *file_stream, *input_stream;
|
||||
|
||||
file_stream = file->stream;
|
||||
input_stream = iso_stream_get_input_stream(file_stream, 0);
|
||||
if (input_stream == NULL)
|
||||
return 0;
|
||||
file->stream = input_stream;
|
||||
iso_stream_ref(input_stream); /* Protect against _unref(file_stream) */
|
||||
iso_stream_unref(file_stream);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user