summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
Diffstat (limited to 'options')
-rw-r--r--options/options.c3
-rw-r--r--options/options.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index e2ce57955e..c6f758a647 100644
--- a/options/options.c
+++ b/options/options.c
@@ -139,6 +139,8 @@ const m_option_t mp_opts[] = {
({"no", 0})),
OPT_INTRANGE("cache-initial", stream_cache.initial, 0, 0, 0x7fffffff),
OPT_INTRANGE("cache-seek-min", stream_cache.seek_min, 0, 0, 0x7fffffff),
+ OPT_STRING("cache-file", stream_cache.file, 0),
+ OPT_INTRANGE("cache-file-size", stream_cache.file_max, 0, 0, 0x7fffffff),
OPT_CHOICE_OR_INT("cache-pause-below", stream_cache_pause, 0, 0, 0x7fffffff,
({"no", 0})),
OPT_INTRANGE("cache-pause-restart", stream_cache_unpause, 0, 0, 0x7fffffff),
@@ -573,6 +575,7 @@ const struct MPOpts mp_default_opts = {
.def_size = 25000,
.initial = 0,
.seek_min = 500,
+ .file_max = 1024 * 1024,
},
.stream_cache_pause = 500,
.stream_cache_unpause = 1000,
diff --git a/options/options.h b/options/options.h
index 110a16701c..83b44c1e3d 100644
--- a/options/options.h
+++ b/options/options.h
@@ -47,6 +47,8 @@ struct mp_cache_opts {
int def_size;
int initial;
int seek_min;
+ char *file;
+ int file_max;
};
typedef struct MPOpts {