mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-25 12:20:20 +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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user