1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 16:33:02 +00:00

demux_playlist: ensure the file is added to autocreated playlist

Even if it doesn't match extensions in filter mode.
This commit is contained in:
Kacper Michajłow 2024-10-08 18:23:55 +02:00
parent 946b29d4f4
commit c201c4874d

View File

@ -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;