Mercurial > mplayer.hg
changeset 25006:cc8cb1bbd38e
Check for second stream presence, fixes single stream playback (from amol)
author | lu_zero |
---|---|
date | Tue, 13 Nov 2007 14:29:02 +0000 |
parents | 1635b2b31bdd |
children | eb36c7846fbe |
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 11:34:45 2007 +0000 +++ b/libmpdemux/demux_nemesi.c Tue Nov 13 14:29:02 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);