diff libmpdemux/network.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 60624e692b95
line wrap: on
line diff
--- a/libmpdemux/network.c	Wed Oct 23 20:39:49 2002 +0000
+++ b/libmpdemux/network.c	Wed Oct 23 22:07:29 2002 +0000
@@ -885,7 +885,7 @@
 		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;