[MPlayer-cvslog] r25034 - trunk/libmpdemux/demux_nemesi.c

lu_zero subversion at mplayerhq.hu
Tue Nov 13 15:29:02 CET 2007


Author: lu_zero
Date: Tue Nov 13 15:29:02 2007
New Revision: 25034

Log:
Check for second stream presence, fixes single stream playback (from amol)

Modified:
   trunk/libmpdemux/demux_nemesi.c

Modified: trunk/libmpdemux/demux_nemesi.c
==============================================================================
--- trunk/libmpdemux/demux_nemesi.c	(original)
+++ trunk/libmpdemux/demux_nemesi.c	Tue Nov 13 15:29:02 2007
@@ -334,6 +334,11 @@ int demux_rtp_fill_buffer(demuxer_t* dem
         stream_add_packet(ndsd, stype, ds, &fr);
     else {
         stype = INVERT_STYPE(stype);
+
+        //Must check if we actually have a stream of the other type
+        if (!ndsd->session[stype])
+            return 1;
+
         ds = STYPE_TO_DS(demuxer, stype);
         ssrc = wait_for_packets(ndsd, stype);
 



More information about the MPlayer-cvslog mailing list