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)
committerMathieu Duponchelle <mduponchelle1@gmail.com>
Wed, 19 Jun 2019 18:04:14 +0000 (18:04 +0000)
commit9023ac1c957195f0b62dc4301b530a6289909908
tree479ec469ab8f6ee30d9f0ede88d71c58792da316
parentd43fea06c5279f01126167035d088ba96aa8656a
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