mirror of
https://github.com/mpv-player/mpv
synced 2025-03-23 20:00:56 +00:00
Replace misuse of stream_reset to set stream pos to 0 by more appropriate code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30667 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7329c15d6f
commit
908f8c91e7
@ -548,9 +548,9 @@ int dvb_set_channel(stream_t *stream, int card, int n)
|
||||
stream->fd = priv->dvr_fd;
|
||||
mp_msg(MSGT_DEMUX, MSGL_V, "DVB_SET_CHANNEL: new channel name=%s, card: %d, channel %d\n", channel->name, card, n);
|
||||
|
||||
stream->eof=1;
|
||||
stream_reset(stream);
|
||||
|
||||
stream->buf_pos = stream->buf_len = 0;
|
||||
stream->pos = 0;
|
||||
stream->eof = 0;
|
||||
|
||||
if(channel->freq != priv->last_freq)
|
||||
if (! dvb_tune(priv, channel->freq, channel->pol, channel->srate, channel->diseqc, channel->tone,
|
||||
|
Loading…
Reference in New Issue
Block a user