From 866e0e1670f79653203a3da65096841ab37fc903 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 31 Aug 2014 19:49:39 +0200 Subject: 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. --- common/playlist.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common') 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 { -- cgit v1.2.3