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 <[email protected]>
This commit is contained in:
Leo Izen authored and Kacper Michajłow committed 2025-03-31 11:34:57 +02:00
1 parent 5ba7ee5137
commit 2e215cc6a5
1 file changed
+2 -1
+2 -1
View File
@@ -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));
}