summaryrefslogtreecommitdiffstats
path: root/cfg-common.h
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2010-11-11 16:36:09 +0100
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-11 17:53:44 +0200
commite7d3e63a3f97b17f20780914b90132b3a1f72909 (patch)
treebcbc524608b21e77fcf57946d5e12a97df7bcee0 /cfg-common.h
parent449484179f05ed6178663cab7b565eff7c884798 (diff)
downloadmpv-e7d3e63a3f97b17f20780914b90132b3a1f72909.tar.bz2
mpv-e7d3e63a3f97b17f20780914b90132b3a1f72909.tar.xz
options: move -cache-min and cache-seek-min to option struct
Diffstat (limited to 'cfg-common.h')
-rw-r--r--cfg-common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cfg-common.h b/cfg-common.h
index b9baf8fa3a..03218a3c58 100644
--- a/cfg-common.h
+++ b/cfg-common.h
@@ -389,8 +389,8 @@ const m_option_t common_opts[] = {
#ifdef CONFIG_STREAM_CACHE
{"cache", &stream_cache_size, CONF_TYPE_INT, CONF_RANGE, 32, 1048576, NULL},
{"nocache", &stream_cache_size, CONF_TYPE_FLAG, 0, 1, 0, NULL},
- {"cache-min", &stream_cache_min_percent, CONF_TYPE_FLOAT, CONF_RANGE, 0, 99, NULL},
- {"cache-seek-min", &stream_cache_seek_min_percent, CONF_TYPE_FLOAT, CONF_RANGE, 0, 99, NULL},
+ OPT_FLOATRANGE("cache-min", stream_cache_min_percent, 0, 0, 99),
+ OPT_FLOATRANGE("cache-seek-min", stream_cache_seek_min_percent, 0, 0, 99),
#else
{"cache", "MPlayer was compiled without cache2 support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
#endif /* CONFIG_STREAM_CACHE */