demux_playlist: add only media files when opening directory
This commit is contained in:
1 parent
44a3a3293f
commit
b73445dcf3
3 files changed
+3
-2
No files matched your search
@@ -1 +1,2 @@
|
||||
add `--directory-filter-types`
|
||||
By default, opening a directory will create a playlist with only the media types "video, audio, image". To restore the previous behavior, use `--directory-filter-types-clr`.
|
||||
@@ -4143,7 +4143,7 @@ Demuxer
|
||||
|
||||
``--directory-filter-types=<video,audio,image>``
|
||||
Media file types to filter when opening directory. If the list is empty,
|
||||
all files are added to the playlist.
|
||||
all files are added to the playlist. (Default: ``video,audio,image``)
|
||||
|
||||
This is a string list option. See `List Options`_ for details.
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ struct m_sub_options demux_playlist_conf = {
|
||||
.defaults = &(const struct demux_playlist_opts){
|
||||
.dir_mode = DIR_AUTO,
|
||||
.directory_filter = (char *[]){
|
||||
NULL
|
||||
"video", "audio", "image", NULL
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user