summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-09-18 11:43:25 -0500
committerDudemanguy <random342@airmail.cc>2023-09-18 17:13:15 +0000
commit7a76cf4d65fc56fbf0a0f600ec770324c44b81e7 (patch)
tree5957811ba3cf423f82ac967dfafa66c72fa67512 /demux
parent1c09ee44c3b0d1001b38ca3dfd030fca644ac5ff (diff)
downloadmpv-7a76cf4d65fc56fbf0a0f600ec770324c44b81e7.tar.bz2
mpv-7a76cf4d65fc56fbf0a0f600ec770324c44b81e7.tar.xz
demux: prepend some cache options with demuxer
--cache-dir is an awful name that leads to confusion (see #12418). Change the name to --demuxer-cache-dir and --demuxer-cache-unlink-files instead.
Diffstat (limited to 'demux')
-rw-r--r--demux/cache.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/demux/cache.c b/demux/cache.c
index 106f53dbed..562eab087b 100644
--- a/demux/cache.c
+++ b/demux/cache.c
@@ -40,10 +40,12 @@ struct demux_cache_opts {
const struct m_sub_options demux_cache_conf = {
.opts = (const struct m_option[]){
- {"cache-dir", OPT_STRING(cache_dir), .flags = M_OPT_FILE},
- {"cache-unlink-files", OPT_CHOICE(unlink_files,
+ {"demuxer-cache-dir", OPT_STRING(cache_dir), .flags = M_OPT_FILE},
+ {"demuxer-cache-unlink-files", OPT_CHOICE(unlink_files,
{"immediate", 2}, {"whendone", 1}, {"no", 0}),
},
+ {"cache-dir", OPT_REPLACED("demuxer-cache-dir")},
+ {"cache-unlink-files", OPT_REPLACED("demuxer-cache-unlink-files")},
{0}
},
.size = sizeof(struct demux_cache_opts),