summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-23 22:07:29 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-23 22:07:29 +0000
commit12bf06a1ada316cba4301ea29d806a99fb310197 (patch)
tree2cea954fa2cd26e4d77a3a49161325e75593530b /mplayer.c
parente6ebe2824efe6f76d705bdc4b2741ea0f644334e (diff)
downloadmpv-12bf06a1ada316cba4301ea29d806a99fb310197.tar.bz2
mpv-12bf06a1ada316cba4301ea29d806a99fb310197.tar.xz
allow cache to be disabled (-nocache should override cachesize autodetection
in stream layer) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7882 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index 4c0f87f9de..84f1e30f47 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -194,7 +194,7 @@ int vcd_track=0;
char* filename=NULL; //"MI2-Trailer.avi";
// cache2:
- int stream_cache_size=0;
+ int stream_cache_size=-1;
#ifdef USE_STREAM_CACHE
extern int cache_fill_status;
#else
@@ -977,7 +977,7 @@ if(stream->type==STREAMTYPE_DVD){
#endif
// CACHE2: initial prefill: 20% later: 5% (should be set by -cacheopts)
-if(stream_cache_size){
+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((eof = libmpdemux_was_interrupted(PT_NEXT_ENTRY))) goto goto_next_file;