# HG changeset patch # User reimar # Date 1118907721 0 # Node ID 52edb32f0c2af1723968fde9a18062f920668469 # Parent 532a351962fb91412278705d5dde44554d750585 Remove code that is already done by fixup_network_stream_cache. diff -r 532a351962fb -r 52edb32f0c2a libmpdemux/http.c --- 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;