Mercurial > mplayer.hg
diff mplayer.c @ 16152:10a69a812eff
remove unused cache-prefill and create cache-seek-min that controls when seek_long is prefered over waiting for cache to fill
author | iive |
---|---|
date | Sun, 31 Jul 2005 00:26:07 +0000 |
parents | 96d10b705bc6 |
children | 6b86089c2edd |
line wrap: on
line diff
--- a/mplayer.c Sat Jul 30 03:04:35 2005 +0000 +++ b/mplayer.c Sun Jul 31 00:26:07 2005 +0000 @@ -266,7 +266,7 @@ extern int cache_fill_status; float stream_cache_min_percent=20.0; -float stream_cache_prefill_percent=5.0; +float stream_cache_seek_min_percent=50.0; #else #define cache_fill_status 0 #endif @@ -1640,7 +1640,9 @@ #endif if(stream_cache_size>0){ current_module="enable_cache"; - 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(!stream_enable_cache(stream,stream_cache_size*1024, + stream_cache_size*1024*(stream_cache_min_percent / 100.0), + stream_cache_size*1024*(stream_cache_seek_min_percent / 100.0))) if((eof = libmpdemux_was_interrupted(PT_NEXT_ENTRY))) goto goto_next_file; }