summaryrefslogtreecommitdiffstats
path: root/mplayer.c
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 /mplayer.c
parent449484179f05ed6178663cab7b565eff7c884798 (diff)
downloadmpv-e7d3e63a3f97b17f20780914b90132b3a1f72909.tar.bz2
mpv-e7d3e63a3f97b17f20780914b90132b3a1f72909.tar.xz
options: move -cache-min and cache-seek-min to option struct
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mplayer.c b/mplayer.c
index 1c6bf14226..f74bb24830 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -314,10 +314,6 @@ int file_filter=1;
// cache2:
int stream_cache_size=-1;
-#ifdef CONFIG_STREAM_CACHE
-float stream_cache_min_percent=20.0;
-float stream_cache_seek_min_percent=50.0;
-#endif
// dump:
int stream_dump_type=0;
@@ -3757,6 +3753,8 @@ if(mpctx->stream->type==STREAMTYPE_DVDNAV){
goto_enable_cache:
if(stream_cache_size>0){
int res;
+ float stream_cache_min_percent = opts->stream_cache_min_percent;
+ float stream_cache_seek_min_percent = opts->stream_cache_seek_min_percent;
current_module="enable_cache";
res = stream_enable_cache(mpctx->stream,stream_cache_size*1024,
stream_cache_size*1024*(stream_cache_min_percent / 100.0),