changeset 15732:52edb32f0c2a

Remove code that is already done by fixup_network_stream_cache.
author reimar
date Thu, 16 Jun 2005 07:42:01 +0000
parents 532a351962fb
children e678e306068e
files libmpdemux/http.c
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/http.c	Thu Jun 16 00:26:47 2005 +0000
+++ b/libmpdemux/http.c	Thu Jun 16 07:42:01 2005 +0000
@@ -691,15 +691,6 @@
 		stream->streaming_ctrl = NULL;
 		return STREAM_UNSUPORTED;
 	}
-	if(stream->streaming_ctrl->buffering) {
-		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;
-			if( stream_cache_size<64 ) stream_cache_size = 64;	// 16KBytes min buffer
-		}
-		mp_msg(MSGT_NETWORK,MSGL_INFO,"Cache size set to %d KBytes, seekable: %d\n", stream_cache_size, seekable);
-	}
 
 	fixup_network_stream_cache(stream);
 	return STREAM_OK;