[MPlayer-cvslog] r30667 - trunk/stream/stream_dvb.c

reimar subversion at mplayerhq.hu
Sat Feb 20 19:39:26 CET 2010


Author: reimar
Date: Sat Feb 20 19:39:26 2010
New Revision: 30667

Log:
Replace misuse of stream_reset to set stream pos to 0 by more appropriate code.

Modified:
   trunk/stream/stream_dvb.c

Modified: trunk/stream/stream_dvb.c
==============================================================================
--- trunk/stream/stream_dvb.c	Sat Feb 20 18:50:56 2010	(r30666)
+++ trunk/stream/stream_dvb.c	Sat Feb 20 19:39:26 2010	(r30667)
@@ -548,9 +548,9 @@ int dvb_set_channel(stream_t *stream, in
 	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,


More information about the MPlayer-cvslog mailing list