summaryrefslogtreecommitdiffstats
path: root/stream/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/network.c')
-rw-r--r--stream/network.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/stream/network.c b/stream/network.c
index fb432d47c0..56e5a1b5e1 100644
--- a/stream/network.c
+++ b/stream/network.c
@@ -461,19 +461,3 @@ int
nop_streaming_seek( int fd, int64_t pos, streaming_ctrl_t *stream_ctrl ) {
return -1;
}
-
-
-void fixup_network_stream_cache(stream_t *stream) {
- struct MPOpts *opts = stream->opts;
- if(!opts)
- return;
- if(stream->streaming_ctrl->buffering) {
- if(opts->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.
- opts->stream_cache_size = (stream->streaming_ctrl->prebuffer_size/1024)*5;
- if( opts->stream_cache_size<64 ) opts->stream_cache_size = 64; // 16KBytes min buffer
- }
- mp_tmsg(MSGT_NETWORK,MSGL_INFO,"Cache size set to %d KBytes\n", opts->stream_cache_size);
- }
-}