Commit 0cc3b98b authored by Max Kellermann's avatar Max Kellermann

input/archive: don't initialize input_stream.ready

The archive plugin should decide this.
parent c157711e
...@@ -170,6 +170,7 @@ bz2_open_stream(struct archive_file *file, struct input_stream *is, ...@@ -170,6 +170,7 @@ bz2_open_stream(struct archive_file *file, struct input_stream *is,
is->plugin = &bz2_inputplugin; is->plugin = &bz2_inputplugin;
//insert back reference //insert back reference
is->data = bis; is->data = bis;
is->ready = true;
is->seekable = false; is->seekable = false;
if (!bz2_alloc(bis, error_r)) { if (!bz2_alloc(bis, error_r)) {
......
...@@ -185,6 +185,7 @@ iso9660_archive_open_stream(struct archive_file *file, struct input_stream *is, ...@@ -185,6 +185,7 @@ iso9660_archive_open_stream(struct archive_file *file, struct input_stream *is,
is->plugin = &iso9660_input_plugin; is->plugin = &iso9660_input_plugin;
//insert back reference //insert back reference
is->data = iis; is->data = iis;
is->ready = true;
//we are not seekable //we are not seekable
is->seekable = false; is->seekable = false;
......
...@@ -145,6 +145,7 @@ zzip_archive_open_stream(struct archive_file *file, struct input_stream *is, ...@@ -145,6 +145,7 @@ zzip_archive_open_stream(struct archive_file *file, struct input_stream *is,
is->plugin = &zzip_input_plugin; is->plugin = &zzip_input_plugin;
//insert back reference //insert back reference
is->data = zis; is->data = zis;
is->ready = true;
//we are seekable (but its not recommendent to do so) //we are seekable (but its not recommendent to do so)
is->seekable = true; is->seekable = true;
......
...@@ -71,8 +71,6 @@ input_archive_open(struct input_stream *is, const char *pathname, ...@@ -71,8 +71,6 @@ input_archive_open(struct input_stream *is, const char *pathname,
if (!opened) { if (!opened) {
archive_file_close(file); archive_file_close(file);
} else {
is->ready = true;
} }
return opened; return opened;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment