[Mplayer-cvslog] CVS: main/libmpdemux network.c,1.62,1.63

Arpi of Ize arpi at mplayerhq.hu
Thu Oct 24 00:07:31 CEST 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv7635/libmpdemux

Modified Files:
	network.c 
Log Message:
allow cache to be disabled (-nocache should override cachesize autodetection
in stream layer)


Index: network.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/network.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- network.c	23 Oct 2002 17:21:00 -0000	1.62
+++ network.c	23 Oct 2002 22:07:29 -0000	1.63
@@ -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;




More information about the MPlayer-cvslog mailing list