From 34571b3c2425ddaa9adf9e074c2bcb7147b4687e Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 8 Oct 2014 00:52:39 +0200 Subject: stream_dvb: use stream_drop_buffers() --- stream/stream_dvb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'stream') diff --git a/stream/stream_dvb.c b/stream/stream_dvb.c index 573a9234df..d754e6994b 100644 --- a/stream/stream_dvb.c +++ b/stream/stream_dvb.c @@ -506,8 +506,7 @@ int dvb_set_channel(stream_t *stream, int card, int n) priv->fd = priv->dvr_fd; MP_VERBOSE(stream, "DVB_SET_CHANNEL: new channel name=%s, card: %d, channel %d\n", channel->name, card, n); - stream->buf_pos = stream->buf_len = 0; - stream->pos = 0; + stream_drop_buffers(stream); if(channel->freq != priv->last_freq) if (! dvb_tune(priv, channel->freq, channel->pol, channel->srate, channel->diseqc, channel->tone, -- cgit v1.2.3