From a4b6bf8c41b54554286117b97e78412a32b5147f Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 2 Mar 2015 19:09:36 +0100 Subject: 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. --- common/playlist.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/playlist.h') diff --git a/common/playlist.h b/common/playlist.h index e0ac816774..119e591db8 100644 --- a/common/playlist.h +++ b/common/playlist.h @@ -62,6 +62,8 @@ struct playlist { // current_was_replaced is set to true. struct playlist_entry *current; bool current_was_replaced; + + bool disable_safety; }; void playlist_entry_add_param(struct playlist_entry *e, bstr name, bstr value); -- cgit v1.2.3