From 2e215cc6a5b8d8aa14c7399fd5cae87e709b00ee Mon Sep 17 00:00:00 2001 From: Leo Izen Date: Sun, 30 Mar 2025 17:08:07 -0400 Subject: [PATCH] demux/demux_playlist: mark fd:// as self-expanding The playlist demuxer won't propagate the protocol forward to its entries if its protocol is on a whitelist, for example data:// or memory:// etc. This commit adds fd:// to that list because that should not be expected to work. Signed-off-by: Leo Izen --- demux/demux_playlist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demux/demux_playlist.c b/demux/demux_playlist.c index 2221e7e86f..926f5c5c77 100644 --- a/demux/demux_playlist.c +++ b/demux/demux_playlist.c @@ -700,7 +700,8 @@ static int open_file(struct demuxer *demuxer, enum demux_check check) bstr proto = mp_split_proto(bstr0(demuxer->filename), NULL); // Don't add base path to self-expanding protocols if (bstrcasecmp0(proto, "memory") && bstrcasecmp0(proto, "lavf") && - bstrcasecmp0(proto, "hex") && bstrcasecmp0(proto, "data")) + bstrcasecmp0(proto, "hex") && bstrcasecmp0(proto, "data") && + bstrcasecmp0(proto, "fd")) { playlist_add_base_path(p->pl, mp_dirname(demuxer->filename)); }