diff options
Diffstat (limited to 'cfg-mplayer.h')
-rw-r--r-- | cfg-mplayer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cfg-mplayer.h b/cfg-mplayer.h index fa5f35af6c..529df35caf 100644 --- a/cfg-mplayer.h +++ b/cfg-mplayer.h @@ -336,8 +336,9 @@ const m_option_t common_opts[] = { // ------------------------- stream options -------------------- #ifdef CONFIG_STREAM_CACHE - {"cache", &stream_cache_size, CONF_TYPE_INT, CONF_RANGE, 32, 0x7fffffff, NULL}, - {"no-cache", &stream_cache_size, CONF_TYPE_FLAG, 0, 1, 0, NULL}, + OPT_INTRANGE("cache", stream_cache_size, 0, 32, 0x7fffffff, OPTDEF_INT(-1)), + OPT_FLAG_CONSTANTS("nocache", stream_cache_size, 0, -1, 0), + OPT_FLOATRANGE("cache-min", stream_cache_min_percent, 0, 0, 99), OPT_FLOATRANGE("cache-seek-min", stream_cache_seek_min_percent, 0, 0, 99), #endif /* CONFIG_STREAM_CACHE */ |