summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-03-02 19:09:36 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-03-03 16:08:43 +0900
commit78349cc188a2b6f98419c112c3bd4bc337f9b0cc (patch)
treee5e075fcad93ec17c676f76458379df779cbc261 /stream/stream.h
parent931f6142572ce50558f6e8b0b25c5f2e28f6ab9f (diff)
downloadmpv-78349cc188a2b6f98419c112c3bd4bc337f9b0cc.tar.bz2
mpv-78349cc188a2b6f98419c112c3bd4bc337f9b0cc.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. (cherry picked from commit a4b6bf8c41b54554286117b97e78412a32b5147f)
Diffstat (limited to 'stream/stream.h')
-rw-r--r--stream/stream.h1
1 files changed, 0 insertions, 1 deletions
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;