summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authoriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-07-31 00:26:07 +0000
committeriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-07-31 00:26:07 +0000
commit84ec57750883208b7ef49d31373eca82bcd345fc (patch)
tree293b4622a73bad8365f4f14e296f76b60d1b88ce /mplayer.c
parentf135605359cbbcf93ed932029e6aecb012f48690 (diff)
downloadmpv-84ec57750883208b7ef49d31373eca82bcd345fc.tar.bz2
mpv-84ec57750883208b7ef49d31373eca82bcd345fc.tar.xz
remove unused cache-prefill and create cache-seek-min that controls when seek_long is prefered over waiting for cache to fill
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16153 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index ca8be17f8c..d99a223069 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -266,7 +266,7 @@ int forced_subs_only=0;
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 @@ 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*(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;
}