summaryrefslogtreecommitdiffstats
path: root/stream/stream_rar.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_rar.c')
-rw-r--r--stream/stream_rar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/stream_rar.c b/stream/stream_rar.c
index 5b6880fbe1..cae5e02020 100644
--- a/stream/stream_rar.c
+++ b/stream/stream_rar.c
@@ -97,7 +97,7 @@ static int rar_entry_open(stream_t *stream, int mode)
mp_url_unescape_inplace(base);
struct stream *rar =
- stream_create(base, STREAM_READ | STREAM_NO_FILTERS, stream->opts);
+ stream_create(base, STREAM_READ | STREAM_NO_FILTERS, stream->global);
if (!rar)
return STREAM_ERROR;
@@ -126,7 +126,7 @@ static int rar_entry_open(stream_t *stream, int mode)
};
file->current_chunk = &dummy;
file->s = rar; // transfer ownership
- file->opts = stream->opts;
+ file->global = stream->global;
RarSeek(file, 0);
stream->priv = file;