From 0cc3b98bd9a4e2b9a0a9ae941c62e0dd7ac91457 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 31 Dec 2009 16:01:10 +0100 Subject: input/archive: don't initialize input_stream.ready The archive plugin should decide this. --- src/archive/bz2_archive_plugin.c | 1 + src/archive/iso9660_archive_plugin.c | 1 + src/archive/zzip_archive_plugin.c | 1 + 3 files changed, 3 insertions(+) (limited to 'src/archive') diff --git a/src/archive/bz2_archive_plugin.c b/src/archive/bz2_archive_plugin.c index 7e0711676..975fd3f07 100644 --- a/src/archive/bz2_archive_plugin.c +++ b/src/archive/bz2_archive_plugin.c @@ -170,6 +170,7 @@ bz2_open_stream(struct archive_file *file, struct input_stream *is, is->plugin = &bz2_inputplugin; //insert back reference is->data = bis; + is->ready = true; is->seekable = false; if (!bz2_alloc(bis, error_r)) { diff --git a/src/archive/iso9660_archive_plugin.c b/src/archive/iso9660_archive_plugin.c index ff8236663..3d5f33896 100644 --- a/src/archive/iso9660_archive_plugin.c +++ b/src/archive/iso9660_archive_plugin.c @@ -185,6 +185,7 @@ iso9660_archive_open_stream(struct archive_file *file, struct input_stream *is, is->plugin = &iso9660_input_plugin; //insert back reference is->data = iis; + is->ready = true; //we are not seekable is->seekable = false; diff --git a/src/archive/zzip_archive_plugin.c b/src/archive/zzip_archive_plugin.c index 087071a47..fb7af74ed 100644 --- a/src/archive/zzip_archive_plugin.c +++ b/src/archive/zzip_archive_plugin.c @@ -145,6 +145,7 @@ zzip_archive_open_stream(struct archive_file *file, struct input_stream *is, is->plugin = &zzip_input_plugin; //insert back reference is->data = zis; + is->ready = true; //we are seekable (but its not recommendent to do so) is->seekable = true; -- cgit v1.2.3