webrtcbin: connect input stream when receiving caps
authorMathieu Duponchelle <mathieu@centricular.com>
Fri, 22 Oct 2021 23:54:05 +0000 (01:54 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 28 Oct 2021 19:05:59 +0000 (19:05 +0000)
commitbe0b5c54fd3fe09a9d70f22d99fab095c9f76089
tree287d625202af8adb1345ad6442e9f82534bd699f
parenta9506f20d35be9557f9cd5c16c4189f7deed0f57
webrtcbin: connect input stream when receiving caps

.. if a current direction has already been set

When `webrtcbin` has created an offer based on codec_preferences,
it might not have received caps on its sinkpads by the time a
remote description is set, in which case we want to connect the
input stream upon actual reception of the caps instead.

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