From a1d7876900be567fe0f2d9b161a08a7cde423b29 Mon Sep 17 00:00:00 2001 From: reimar Date: Thu, 16 Jun 2005 07:42:01 +0000 Subject: [PATCH] Remove code that is already done by fixup_network_stream_cache. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15733 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/http.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libmpdemux/http.c b/libmpdemux/http.c index 35f23e0c00..6123e07425 100644 --- a/libmpdemux/http.c +++ b/libmpdemux/http.c @@ -691,15 +691,6 @@ static int fixup_open(stream_t *stream,int seekable) { 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;