1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-03 13:32:16 +00:00

stream_dvb: use stream_drop_buffers()

This commit is contained in:
wm4 2014-10-08 00:52:39 +02:00
parent cd367198c0
commit 34571b3c24

View File

@ -506,8 +506,7 @@ int dvb_set_channel(stream_t *stream, int card, int n)
priv->fd = priv->dvr_fd; priv->fd = priv->dvr_fd;
MP_VERBOSE(stream, "DVB_SET_CHANNEL: new channel name=%s, card: %d, channel %d\n", channel->name, card, n); 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_drop_buffers(stream);
stream->pos = 0;
if(channel->freq != priv->last_freq) if(channel->freq != priv->last_freq)
if (! dvb_tune(priv, channel->freq, channel->pol, channel->srate, channel->diseqc, channel->tone, if (! dvb_tune(priv, channel->freq, channel->pol, channel->srate, channel->diseqc, channel->tone,