webrtcbin: Add a blocking pad probe for the receivebin -> sctpdec connection
authorSebastian Dröge <sebastian@centricular.com>
Thu, 6 Feb 2020 12:27:42 +0000 (14:27 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 11 Feb 2020 00:49:51 +0000 (00:49 +0000)
commitc16d4d2c33e4af301110897634414fc878b76481
tree7ad3eae267463c0a8425c32de17a1bde9a3a6c9d
parentf8fa71da27dd2619a509cfee585666db7627015b
webrtcbin: Add a blocking pad probe for the receivebin -> sctpdec connection

Without this it might happen that received data from the DTLS transport
is already passed to sctpdec before its state was set to PLAYING. This
would cause the data to be dropped, GST_FLOW_FLUSHING to be returned and
the whole DTLS transport to shut down.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/1172
among other things.
ext/webrtc/gstwebrtcbin.c
ext/webrtc/sctptransport.h