summaryrefslogtreecommitdiffstats
path: root/stream/stream_libarchive.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_libarchive.c')
-rw-r--r--stream/stream_libarchive.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/stream/stream_libarchive.c b/stream/stream_libarchive.c
index 7c48f3a135..a43f2e633f 100644
--- a/stream/stream_libarchive.c
+++ b/stream/stream_libarchive.c
@@ -264,9 +264,11 @@ struct mp_archive *mp_archive_new(struct mp_log *log, struct stream *src,
if (!add_volume(mpa, src, src->url, 0))
goto err;
- // try to open other volumes
- if (!find_volumes(mpa))
- goto err;
+ if (!(flags & MP_ARCHIVE_FLAG_NO_RAR_VOLUMES)) {
+ // try to open other volumes
+ if (!find_volumes(mpa))
+ goto err;
+ }
locale_t oldlocale = uselocale(mpa->locale);