mirror of https://github.com/mpv-player/mpv
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:
parent
70ca379c4c
commit
a910a6f799
|
@ -334,6 +334,11 @@ int demux_rtp_fill_buffer(demuxer_t* demuxer, demux_stream_t* ds)
|
||||||
stream_add_packet(ndsd, stype, ds, &fr);
|
stream_add_packet(ndsd, stype, ds, &fr);
|
||||||
else {
|
else {
|
||||||
stype = INVERT_STYPE(stype);
|
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);
|
ds = STYPE_TO_DS(demuxer, stype);
|
||||||
ssrc = wait_for_packets(ndsd, stype);
|
ssrc = wait_for_packets(ndsd, stype);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue