diff options
author | Dudemanguy <random342@airmail.cc> | 2023-09-18 11:43:25 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-09-18 17:13:15 +0000 |
commit | 7a76cf4d65fc56fbf0a0f600ec770324c44b81e7 (patch) | |
tree | 5957811ba3cf423f82ac967dfafa66c72fa67512 /demux | |
parent | 1c09ee44c3b0d1001b38ca3dfd030fca644ac5ff (diff) | |
download | mpv-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.c | 6 |
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), |