Mercurial > mplayer.hg
diff mplayer.c @ 7881:aba9301ed3c4
allow cache to be disabled (-nocache should override cachesize autodetection
in stream layer)
author | arpi |
---|---|
date | Wed, 23 Oct 2002 22:07:29 +0000 |
parents | 3dc0b71630ff |
children | 40aa6cf5a66b |
line wrap: on
line diff
--- a/mplayer.c Wed Oct 23 20:39:49 2002 +0000 +++ b/mplayer.c Wed Oct 23 22:07:29 2002 +0000 @@ -194,7 +194,7 @@ 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 @@ #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;