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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/stream/stream_rar.c b/stream/stream_rar.c
index 1051e05ab4..510babf949 100644
--- a/stream/stream_rar.c
+++ b/stream/stream_rar.c
@@ -98,8 +98,8 @@ static int rar_entry_open(stream_t *stream)
*name++ = '\0';
mp_url_unescape_inplace(base);
- struct stream *rar = stream_create(base, STREAM_READ, stream->cancel,
- stream->global);
+ struct stream *rar = stream_create(base, STREAM_READ | STREAM_SAFE_ONLY,
+ stream->cancel, stream->global);
if (!rar)
return STREAM_ERROR;
@@ -146,6 +146,4 @@ const stream_info_t stream_info_rar = {
.name = "rar",
.open = rar_entry_open,
.protocols = (const char*const[]){ "rar", NULL },
- .is_safe = true,
- .is_network = true, // safe over network
};