diff options
author | lu_zero <lu_zero@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-13 14:29:02 +0000 |
---|---|---|
committer | lu_zero <lu_zero@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-13 14:29:02 +0000 |
commit | a910a6f799b160084b06e7f2f82a4e64d15a006d (patch) | |
tree | 93296f5f50cf27c487f14846151adfdf02ef4aee | |
parent | 70ca379c4c932286c3616e49d3ac5de980d5fb2f (diff) |
Check for second stream presence, fixes single stream playback (from amol)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25034 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdemux/demux_nemesi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libmpdemux/demux_nemesi.c b/libmpdemux/demux_nemesi.c index d71f5e1d6a..0b19d76169 100644 --- a/libmpdemux/demux_nemesi.c +++ b/libmpdemux/demux_nemesi.c @@ -334,6 +334,11 @@ int demux_rtp_fill_buffer(demuxer_t* demuxer, demux_stream_t* ds) 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); |