mirror of
https://github.com/mpv-player/mpv
synced 2024-10-30 04:46:41 +01:00
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:
parent
bd391c1053
commit
90e6e28449
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user