webrtc: Clean up and fix transportsendbin
authorJan Schmidt <jan@centricular.com>
Sat, 14 Jul 2018 13:04:30 +0000 (23:04 +1000)
committerJan Schmidt <jan@centricular.com>
Sat, 14 Jul 2018 13:20:13 +0000 (23:20 +1000)
commit15d3bc9870df1060ee37c58f69dae46babeee95d
treed6d13f3069283a5d882c41c1157fdd594ebb36f6
parentcb750efd6ce0f2c96b2edc3ae8b62deed77acfe3
webrtc: Clean up and fix transportsendbin

Refactor transportsendbin, and change the way
pads are blocked on dtlssrtpenc so that they
don't interfere with state changes.

As well as being easier to read, this fixes
spurious failures shutting down webrtcbin
if DTLS negotiation hasn't completed yet.
ext/webrtc/transportsendbin.c
ext/webrtc/transportsendbin.h