From ad9e2b3307c3a0c1d2a367301035959827f1ea5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Wed, 14 Oct 2026 11:17:26 +0200 Subject: [PATCH] demux_playlist: resolve relative entries against the url after redirects --- 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 925ac686d3..4f78d9343a 100644 --- a/demux/demux_playlist.c +++ b/demux/demux_playlist.c @@ -221,7 +221,8 @@ static void pl_add(struct pl_parser *p, bstr entry) if (!mp_is_url(entry) && bstrcasecmp0(proto, "memory") && bstrcasecmp0(proto, "lavf") && bstrcasecmp0(proto, "hex") && bstrcasecmp0(proto, "data") && bstrcasecmp0(proto, "fd")) { - path = mp_path_join_bstr(ctx, mp_dirname(p->s->url), bstr0(path)); + const char *base = p->s->effective_url ? p->s->effective_url : p->s->url; + path = mp_path_join_bstr(ctx, mp_dirname(base), bstr0(path)); } playlist_append_file(p->pl, path);