mirror of https://github.com/mpv-player/mpv
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)
|
if (autocreate & AUTO_ANY)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
if (!strcmp(path, p->real_stream->path))
|
||||||
|
return true;
|
||||||
|
|
||||||
bstr ext = bstr_get_ext(bstr0(path));
|
bstr ext = bstr_get_ext(bstr0(path));
|
||||||
if (autocreate & AUTO_VIDEO && str_in_list(ext, p->mp_opts->video_exts))
|
if (autocreate & AUTO_VIDEO && str_in_list(ext, p->mp_opts->video_exts))
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue