History

demux_playlist: ensure the file is added to autocreated playlist

Even if it doesn't match extensions in filter mode.

Kacper Michajłow committed 2 years ago

Commit c201c481 parent 946b29d1 file · +3 −0Browse files

Unified · Split

demux/demux_playlist.c+3−0
@@ -416,6 +416,9 @@ static bool test_path(struct pl_parser *p, char *path, int autocreate) · 415 unmodified lines
416416 if (autocreate & AUTO_ANY)
417417 return true;
418418
419+ if (!strcmp(path, p->real_stream->path))
420+ return true;
421+
419422 bstr ext = bstr_get_ext(bstr0(path));
420423 if (autocreate & AUTO_VIDEO && str_in_list(ext, p->mp_opts->video_exts))
421424 return true;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t