From b4c1554f7a60c7ea05a04e02209359e2f958a8e0 Mon Sep 17 00:00:00 2001 From: Oliver Freyermuth Date: Fri, 10 Apr 2020 16:43:42 +0200 Subject: stream_dvb: Remove call to stream_drop_buffers in fill_buffer. The call was hidden very well, via dvb_streaming_read -> dvb_update_config -> dvb_streaming_start -> dvb_set_channel, and broke the stream buffering logic. Dropping that call does not noticeably slow down channel switches. --- stream/stream_dvb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/stream/stream_dvb.c b/stream/stream_dvb.c index 1111d3d7a5..8fddf3abf9 100644 --- a/stream/stream_dvb.c +++ b/stream/stream_dvb.c @@ -836,8 +836,6 @@ int dvb_set_channel(stream_t *stream, unsigned int adapter, unsigned int n) MP_VERBOSE(stream, "DVB_SET_CHANNEL: new channel name=%s, adapter: %d, " "channel %d\n", channel->name, devno, n); - stream_drop_buffers(stream); - if (channel->freq != state->last_freq) { if (!dvb_tune(priv, channel->delsys, channel->freq, channel->pol, channel->srate, channel->diseqc, -- cgit v1.2.3