diff options
author | wm4 <wm4@nowhere> | 2014-08-31 19:49:39 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-31 19:49:39 +0200 |
commit | 866e0e1670f79653203a3da65096841ab37fc903 (patch) | |
tree | 2c01331832dc0be8d77954936f1e590a6d2728a4 /stream/stream.h | |
parent | fc0fa9a221882647da563acc2d22eac0f27b1120 (diff) | |
download | mpv-866e0e1670f79653203a3da65096841ab37fc903.tar.bz2 mpv-866e0e1670f79653203a3da65096841ab37fc903.tar.xz |
player: always load playlists
Until now, you had to use --load-unsafe-playlists or --playlist to get
playlists loaded. Change this and always load playlists by default.
This still attempts to reject unsafe URLs. For example, trying to invoke
libavdevice pseudo-demuxer is explicitly prevented. Local paths and any
http links (and some more) are always allowed.
Diffstat (limited to 'stream/stream.h')
-rw-r--r-- | stream/stream.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h index a961267aac..94103962c9 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -55,7 +55,9 @@ enum streamtype { // flags for stream_open_ext (this includes STREAM_READ and STREAM_WRITE) #define STREAM_NO_FILTERS 2 +#define STREAM_SAFE_ONLY 4 +#define STREAM_UNSAFE -3 #define STREAM_NO_MATCH -2 #define STREAM_UNSUPPORTED -1 #define STREAM_ERROR 0 @@ -141,6 +143,7 @@ typedef struct stream_info_st { const char *const *url_options; bool stream_filter; bool can_write; + bool is_safe; } stream_info_t; typedef struct stream { |