summaryrefslogtreecommitdiffstats
path: root/libmpdemux
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 /libmpdemux
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 'libmpdemux')
-rw-r--r--libmpdemux/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/network.c b/libmpdemux/network.c
index d49515cb13..1deaad1f3d 100644
--- a/libmpdemux/network.c
+++ b/libmpdemux/network.c
@@ -885,7 +885,7 @@ streaming_start(stream_t *stream, int *demuxer_type, URL_t *url) {
stream->streaming_ctrl = NULL;
} else if( stream->streaming_ctrl->buffering ) {
int cache_size = stream_cache_size;
- if(!stream_cache_size) {
+ if(stream_cache_size<0) {
// cache option not set, will use our computed value.
// buffer in KBytes, *5 because the prefill is 20% of the buffer.
stream_cache_size = (stream->streaming_ctrl->prebuffer_size/1024)*5;