diff options
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -255,6 +255,9 @@ int forced_subs_only=0; int stream_cache_size=-1; #ifdef USE_STREAM_CACHE extern int cache_fill_status; + +float stream_cache_min_percent=20.0; +float stream_cache_prefill_percent=5.0; #else #define cache_fill_status 0 #endif @@ -1375,7 +1378,7 @@ goto_enable_cache: #endif if(stream_cache_size>0){ current_module="enable_cache"; - if(!stream_enable_cache(stream,stream_cache_size*1024,stream_cache_size*1024/5,stream_cache_size*1024/20)) + if(!stream_enable_cache(stream,stream_cache_size*1024,stream_cache_size*1024*(stream_cache_min_percent / 100.0),stream_cache_size*1024*(stream_cache_prefill_percent / 100.0))) if((eof = libmpdemux_was_interrupted(PT_NEXT_ENTRY))) goto goto_next_file; } |