diff options
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream.c | 1 | ||||
-rw-r--r-- | stream/stream.h | 1 | ||||
-rw-r--r-- | stream/stream_rar.c | 6 |
3 files changed, 2 insertions, 6 deletions
diff --git a/stream/stream.c b/stream/stream.c index c16221add6..91f430f1e6 100644 --- a/stream/stream.c +++ b/stream/stream.c @@ -735,7 +735,6 @@ static stream_t *open_cache(stream_t *orig, const char *name) cache->mime_type = talloc_strdup(cache, orig->mime_type); cache->demuxer = talloc_strdup(cache, orig->demuxer); cache->lavf_type = talloc_strdup(cache, orig->lavf_type); - cache->safe_origin = orig->safe_origin; cache->streaming = orig->streaming, cache->is_network = orig->is_network; cache->opts = orig->opts; diff --git a/stream/stream.h b/stream/stream.h index 9908951bad..b2b92cd6eb 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -194,7 +194,6 @@ typedef struct stream { bool streaming : 1; // known to be a network stream if true bool seekable : 1; // presence of general byte seeking support bool fast_skip : 1; // consider stream fast enough to fw-seek by skipping - bool safe_origin : 1; // used for playlists that can be opened safely bool is_network : 1; // original stream_info_t.is_network flag bool allow_caching : 1; // stream cache makes sense struct mp_log *log; 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 }; |