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
This commit is contained in:
reimar 2005-06-16 07:42:01 +00:00
parent 1b0c8682c4
commit a1d7876900
1 changed files with 0 additions and 9 deletions

View File

@ -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;