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:
reimar 2010-02-20 18:39:26 +00:00
parent 7329c15d6f
commit 908f8c91e7
1 changed files with 3 additions and 3 deletions

View File

@ -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,