webrtcbin: Reject creating an offer if a locked mline has no caps
authorOlivier Crête <olivier.crete@collabora.com>
Mon, 16 May 2022 22:05:25 +0000 (18:05 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Fri, 2 Sep 2022 09:52:58 +0000 (11:52 +0200)
commit0930c467d485316fbf80c25211632b6b4b9381fd
tree02056a8025f7276b65c68f9073d125f13408615a
parent3503599e0a27b64dd0da59ebd70e2ab268221535
webrtcbin: Reject creating an offer if a locked mline has no caps

This avoids getting in a bunch of corner cases. We'd have to insert
a "rejected" line from the start as a place-holder to get around this,
but the rest of the code just becomes more complicated, so just
disallow it for now.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2439>
subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c
subprojects/gst-plugins-bad/tests/check/elements/webrtcbin.c