summaryrefslogtreecommitdiffstats
path: root/options/options.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-22 23:38:45 +0200
committerwm4 <wm4@nowhere>2015-07-22 23:55:10 +0200
commit55879a8c0fad68fbe889057c16fc8f15bf3efce2 (patch)
tree86cce8a35904a0633393d1798df79f955a2efbdb /options/options.h
parent63d112746dcf6b3c62b16cfd50eee91128054ce2 (diff)
downloadmpv-55879a8c0fad68fbe889057c16fc8f15bf3efce2.tar.bz2
mpv-55879a8c0fad68fbe889057c16fc8f15bf3efce2.tar.xz
cache: make backbuffer size configurable
Allow setting an arbitrary amount, instead of the fixed 50%. This is nto striclty backwards compatible. The defaults don't change, but the --cache/--cache-default options now set the readahead portion. So in practice, users who configured this until now will see the double amount of cache being used, _plus_ the 75MB default backbuffer will be in use.
Diffstat (limited to 'options/options.h')
-rw-r--r--options/options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.h b/options/options.h
index 5d8bd2ea09..3dcb783164 100644
--- a/options/options.h
+++ b/options/options.h
@@ -53,6 +53,7 @@ struct mp_cache_opts {
int def_size;
int initial;
int seek_min;
+ int back_buffer;
char *file;
int file_max;
};