rtpsession: Fix EOS forwarding
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 22 Feb 2019 21:02:12 +0000 (16:02 -0500)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Mon, 25 Feb 2019 17:06:50 +0000 (17:06 +0000)
commite72ef633a6e8df6af1c766cad8e5d832980ac54b
tree67347afff9a159698923561d822674036dbbb66f
parent098f936be8902dc85f012ae6466e0778b2c32409
rtpsession: Fix EOS forwarding

So far we assumed that if all sources are bye, this meant we needed to
send an EOS on the RTCP sink. The problem is that this case may happens
if we only had one internal source and it detected a collision.

So now we limit the EOS forwarding to when there is a send_rtp_sink pad
and that this pad has received EOS. We don'tcheck the recv_rtp_sink
since the code does not wait for the bye to be send before sending EOS
to the RTCP src pad.
gst/rtpmanager/gstrtpsession.c