rtpsession: Don't start the RTCP thread until it's needed
authorHavard Graff <havard.graff@gmail.com>
Fri, 25 Aug 2017 09:58:12 +0000 (11:58 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Thu, 12 Jul 2018 16:37:33 +0000 (18:37 +0200)
commitac6e77acad79907564c96383f87d50bcf82d9e33
treedef5514d06995f837ecc95f56c6612620e73d9c5
parentb12b8b0b220e5856695f40a3079293a73b52fb65
rtpsession: Don't start the RTCP thread until it's needed

Always wait with starting the RTCP thread until either a RTP or RTCP
packet is sent or received. Special handling is needed to make sure the
RTCP thread is started when requesting an early RTCP packet.

We want to wait with starting the RTCP thread until it's needed in order
to not send RTCP packets for an inactive source.

https://bugzilla.gnome.org/show_bug.cgi?id=795139
gst/rtpmanager/gstrtpsession.c
gst/rtpmanager/rtpsession.c
gst/rtpmanager/rtpsession.h
tests/check/elements/rtpsession.c