From 6294c785490be5fc31d29758ca592510fd161371 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 1 Dec 2012 23:28:58 +0100 Subject: cache: simplify further This commit is separate from the previous one to separate our own changes from changes merged from mplayer2 (as far as that was possible). Make it easier for stream implementations to request being cached. Set a default cache size in stream.c, and remove them from various stream implementations. Only MS streaming support sets a meaningful cache size. Make querying cache size saner. This reduces the amount of #ifdefs needed. --- stream/stream_udp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'stream/stream_udp.c') diff --git a/stream/stream_udp.c b/stream/stream_udp.c index 22b9cefc57..fc7da19aa0 100644 --- a/stream/stream_udp.c +++ b/stream/stream_udp.c @@ -51,9 +51,8 @@ udp_streaming_start (stream_t *stream) streaming_ctrl->streaming_read = nop_streaming_read; streaming_ctrl->streaming_seek = nop_streaming_seek; - streaming_ctrl->prebuffer_size = 64 * 1024; /* 64 KBytes */ - streaming_ctrl->buffering = 0; streaming_ctrl->status = streaming_playing_e; + stream->streaming = false; return 0; } -- cgit v1.2.3