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

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25041 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
lu_zero 2007-11-13 23:02:49 +00:00
parent bd391c1053
commit 90e6e28449
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);