webrtcbin: fix DTLS when receivebin is set to DROP
authorMathieu Duponchelle <mathieu@centricular.com>
Wed, 19 Jun 2019 17:43:14 +0000 (19:43 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 9 Aug 2019 14:58:21 +0000 (15:58 +0100)
commit16203addbb585c1c4600cd578bbc35768f39b4d8
tree59650280052a37a831f0f7b972e7b0ad8bcaf13f
parentb58e65a48cc9696f8063a220e59b3f6b751f6830
webrtcbin: fix DTLS when receivebin is set to DROP

Regression introduced by b4bdcf15b7237eb5c5943c4f746701a477333000

This commit prevents the handshake from reaching dtlsdec when
the receive state of the receive bin is set to DROP (for example
when transceivers are sendonly).

This preserves the intent of the commit, by blocking the bin
at its sinks until the receive state is no longer BLOCK, but
makes sure the handshake still goes through, by only dropping
data at the src pads, as was the case before.
ext/webrtc/transportreceivebin.c
ext/webrtc/transportreceivebin.h