webrtcbin: Fix potential deadlock when closing before any data was sent
authorPhilippe Normand <philn@igalia.com>
Tue, 2 May 2023 17:14:20 +0000 (18:14 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 3 May 2023 09:54:11 +0000 (09:54 +0000)
commit0a23782aeaeed41c4605783f922c0bcc4fe0208d
tree1566906872c8caf82118dfd8efb0f3f82eea1858
parent943a53cc515d3aa43df3a441865af256bd61a48d
webrtcbin: Fix potential deadlock when closing before any data was sent

A blocking pad probe is added on new sink pads, it's usually removed after the
caps have been negotiated or the signaling state switched to stable, but if that
never happens and the pad is released we kept the pad probe active, leaving the
pad blocked, preventing clean disposal.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4533>
subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c