summaryrefslogtreecommitdiffstats
path: root/stream/stream.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-03-02 19:09:36 +0100
committerwm4 <wm4@nowhere>2015-03-02 19:09:36 +0100
commita4b6bf8c41b54554286117b97e78412a32b5147f (patch)
treefa745bdb50a2cf0c51e99aa710b042a2e75eba08 /stream/stream.c
parent01b87e509c292189acdd96bc7a216b50eafbce9e (diff)
downloadmpv-a4b6bf8c41b54554286117b97e78412a32b5147f.tar.bz2
mpv-a4b6bf8c41b54554286117b97e78412a32b5147f.tar.xz
player: refine rar:// playlist-safety handling
It was possible to make the player play local files by putting rar:// links into remote playlists, and some other potentially unsafe things. Redo the handling of it. Now the rar-redirector (the thing in demux_playlist.c) sets disable_safety, which makes the player open any playlist entries returned. This is fine, because it redirects to the same file anyway (just with different selection/interpretation of the contents). On the other hand, rar:// itself is now considered fully unsafe, which means that it is ignored if found in normal playlists.
Diffstat (limited to 'stream/stream.c')
-rw-r--r--stream/stream.c1
1 files changed, 0 insertions, 1 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;