summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2023-08-29 08:19:19 +0200
committerDudemanguy <random342@airmail.cc>2023-08-30 15:46:57 +0000
commitedd7189a72c88dde6242fe1694323b22f2325c9c (patch)
treec8ac368dd955ef390808b714a74f0b40e6732051 /demux
parent7f9b1b32a5ee5419f0f467cfa68833f7ad186e43 (diff)
downloadmpv-edd7189a72c88dde6242fe1694323b22f2325c9c.tar.bz2
mpv-edd7189a72c88dde6242fe1694323b22f2325c9c.tar.xz
demux_playlist: default to --directory-mode=lazy
64959c450d solved the problems with resuming playback, so default to --directory-mode=lazy because it's faster, especially on slow drives, and results in smaller playlists.
Diffstat (limited to 'demux')
-rw-r--r--demux/demux_playlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/demux/demux_playlist.c b/demux/demux_playlist.c
index 0c55df9dd8..8e84129e2c 100644
--- a/demux/demux_playlist.c
+++ b/demux/demux_playlist.c
@@ -37,8 +37,8 @@
#define PROBE_SIZE (8 * 1024)
enum dir_mode {
- DIR_RECURSIVE,
DIR_LAZY,
+ DIR_RECURSIVE,
DIR_IGNORE,
};
@@ -50,14 +50,14 @@ struct demux_playlist_opts {
struct m_sub_options demux_playlist_conf = {
.opts = (const struct m_option[]) {
{"directory-mode", OPT_CHOICE(dir_mode,
- {"recursive", DIR_RECURSIVE},
{"lazy", DIR_LAZY},
+ {"recursive", DIR_RECURSIVE},
{"ignore", DIR_IGNORE})},
{0}
},
.size = sizeof(struct demux_playlist_opts),
.defaults = &(const struct demux_playlist_opts){
- .dir_mode = DIR_RECURSIVE,
+ .dir_mode = DIR_LAZY,
},
};