summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-17 16:56:56 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-17 16:56:56 +0000
commit267916c82be0b05f936abd75fe7a196e1fd3e4eb (patch)
tree1631c57b4c8b146a6a528821bb816f9393613c2a /mplayer.c
parent3db7b73bd93e1d41a8bfdb65df0c8201a3da8a29 (diff)
downloadmpv-267916c82be0b05f936abd75fe7a196e1fd3e4eb.tar.bz2
mpv-267916c82be0b05f936abd75fe7a196e1fd3e4eb.tar.xz
precaching
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3564 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index d603b6ede5..99d3ea0fb2 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -821,7 +821,8 @@ if(stream_dump_type==5){
#endif
current_module=NULL;
- if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024);
+ // initial prefill: 20% later: 5% (should be set by -cacheopts)
+ if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024,stream_cache_size*1024/5,stream_cache_size*1024/20);
use_stdin=filename && (!strcmp(filename,"-"));