From c201c4874def40b30e5017728bbfbe04ad065dcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Tue, 8 Oct 2024 18:23:55 +0200 Subject: [PATCH] demux_playlist: ensure the file is added to autocreated playlist Even if it doesn't match extensions in filter mode. --- demux/demux_playlist.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/demux/demux_playlist.c b/demux/demux_playlist.c index 46bac914cb..75e49fc0a9 100644 --- a/demux/demux_playlist.c +++ b/demux/demux_playlist.c @@ -416,6 +416,9 @@ static bool test_path(struct pl_parser *p, char *path, int autocreate) if (autocreate & AUTO_ANY) return true; + if (!strcmp(path, p->real_stream->path)) + return true; + bstr ext = bstr_get_ext(bstr0(path)); if (autocreate & AUTO_VIDEO && str_in_list(ext, p->mp_opts->video_exts)) return true;