summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-08 00:52:39 +0200
committerwm4 <wm4@nowhere>2014-10-08 00:52:39 +0200
commit34571b3c2425ddaa9adf9e074c2bcb7147b4687e (patch)
tree42a3e2c82d0591b432db181ec091b2d0253fef03 /stream
parentcd367198c0223d290d2f695a7ccdd3df7aab6159 (diff)
downloadmpv-34571b3c2425ddaa9adf9e074c2bcb7147b4687e.tar.bz2
mpv-34571b3c2425ddaa9adf9e074c2bcb7147b4687e.tar.xz
stream_dvb: use stream_drop_buffers()
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_dvb.c3
1 files changed, 1 insertions, 2 deletions
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,