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:
parent
946b29d4f4
commit
c201c4874d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user