changeset 25013:dc6b7ad240db

Check for second stream presence, fixes single stream playback (from amol)
author lu_zero
date Tue, 13 Nov 2007 23:02:49 +0000
parents e800e0905050
children f97c1739522b
files libmpdemux/demux_nemesi.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_nemesi.c	Tue Nov 13 23:02:09 2007 +0000
+++ b/libmpdemux/demux_nemesi.c	Tue Nov 13 23:02:49 2007 +0000
@@ -334,6 +334,11 @@
         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);