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
1 changed files with 3 additions and 0 deletions

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;