webrtc: Don't deadlock on block pads on shutdown
authorJan Schmidt <jan@centricular.com>
Tue, 26 Jun 2018 17:05:55 +0000 (03:05 +1000)
committerJan Schmidt <jan@centricular.com>
Wed, 27 Jun 2018 12:44:26 +0000 (22:44 +1000)
commited90d3b2ecaffd4f31b20609b97a3d7f731fa79b
tree5b3bbf75fd35ec05387c46f16a346eb4200f2c50
parent22b885fd02a0f9a7ceb3cdd866d9827e1ff190ef
webrtc: Don't deadlock on block pads on shutdown

When changing state downward, we can't set pads
to inactive if they are blocked, it will deadlock
trying to acquire the streaming lock.

Just calling the parent state change function
will do the correct things to unblock probes and
set the pad inactive, so let it do that and
remove the probes after the parent state change
function has run

https://bugzilla.gnome.org/show_bug.cgi?id=796682
ext/webrtc/transportsendbin.c