[MPlayer-cvslog] r20968 - trunk/libmpdemux/demux_ts.c

nicodvb subversion at mplayerhq.hu
Thu Nov 16 22:31:45 CET 2006


Author: nicodvb
Date: Thu Nov 16 22:31:44 2006
New Revision: 20968

Modified:
   trunk/libmpdemux/demux_ts.c

Log:
reset demuxer's buffered demux_packet after DEMUXER_CTRL_SWITCH_AUDIO

Modified: trunk/libmpdemux/demux_ts.c
==============================================================================
--- trunk/libmpdemux/demux_ts.c	(original)
+++ trunk/libmpdemux/demux_ts.c	Thu Nov 16 22:31:44 2006
@@ -3209,6 +3209,8 @@
 
 			if(sh_a)
 			{
+				if(demuxer->audio->id != priv->ts.streams[i].id)
+					reset_fifos(priv, 1, 0, 0);
 				demuxer->audio->id = priv->ts.streams[i].id;
 				demuxer->audio->sh = sh_a;
 				ds_free_packs(demuxer->audio);



More information about the MPlayer-cvslog mailing list