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
This commit is contained in:
lu_zero 2007-11-13 14:29:02 +00:00
parent 70ca379c4c
commit a910a6f799
1 changed files with 5 additions and 0 deletions

View File

@ -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);