diff options
author | wm4 <wm4@nowhere> | 2015-03-12 23:51:41 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-03-12 23:51:41 +0100 |
commit | 9b77666783d80fe0c3f6276e07ed97a6706f277f (patch) | |
tree | b8c64ee97596dc92c5c6b28fb294e05a3d6be388 /options | |
parent | 1eeeab2e1490d99b41d3585b4082f8bd404a4da6 (diff) | |
download | mpv-9b77666783d80fe0c3f6276e07ed97a6706f277f.tar.bz2 mpv-9b77666783d80fe0c3f6276e07ed97a6706f277f.tar.xz |
options: introduce --cache=yes choice
I think this is what I alwass missed ever since I found the MPlayer
cache options: a way to enable the cache on local files with the default
settings, whatever they are.
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/options/options.c b/options/options.c index 737d2e5814..cc3a211923 100644 --- a/options/options.c +++ b/options/options.c @@ -141,7 +141,8 @@ const m_option_t mp_opts[] = { OPT_CHOICE_OR_INT("cache", stream_cache.size, 0, 32, 0x7fffffff, ({"no", 0}, - {"auto", -1})), + {"auto", -1}, + {"yes", -2})), OPT_CHOICE_OR_INT("cache-default", stream_cache.def_size, 0, 32, 0x7fffffff, ({"no", 0})), OPT_INTRANGE("cache-initial", stream_cache.initial, 0, 0, 0x7fffffff), |