changeset 30625:bc29a1172753

Replace misuse of stream_reset to set stream pos to 0 by more appropriate code.
author reimar
date Sat, 20 Feb 2010 18:39:26 +0000
parents 60818f87a285
children 27b133678bbd
files stream/stream_dvb.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvb.c	Sat Feb 20 17:50:56 2010 +0000
+++ b/stream/stream_dvb.c	Sat Feb 20 18:39:26 2010 +0000
@@ -548,9 +548,9 @@
 	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,