path: root/common
diff options
authorwm4 <wm4@nowhere>2014-08-31 19:49:39 +0200
committerwm4 <wm4@nowhere>2014-08-31 19:49:39 +0200
commit866e0e1670f79653203a3da65096841ab37fc903 (patch)
tree2c01331832dc0be8d77954936f1e590a6d2728a4 /common
parentfc0fa9a221882647da563acc2d22eac0f27b1120 (diff)
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 'common')
1 files changed, 3 insertions, 0 deletions
diff --git a/common/playlist.h b/common/playlist.h
index ea0e3698a2..916d21bf45 100644
--- a/common/playlist.h
+++ b/common/playlist.h
@@ -41,6 +41,9 @@ struct playlist_entry {
bool playback_short : 1;
// Set to true if not at least 1 frame (audio or video) could be played.
bool init_failed : 1;
+ // If set, assume that this is e.g. from an external playlist, and needs an
+ // additional safety check.
+ bool unsafe_origin : 1;
struct playlist {