webrtcbin: Reject answers that don't contain the same number of m-line as offer
authorOlivier CrĂȘte <olivier.crete@collabora.com>
Mon, 30 May 2022 20:31:38 +0000 (16:31 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 3 Jun 2022 20:28:19 +0000 (20:28 +0000)
commit9fe2e1c5ebae44a32530998077a26b3f7db82352
tree933aacad5fd915637d7acf866e3cac0b07d0da6a
parent955adc456456a800697939a8028e1f5fa6fc4b16
webrtcbin: Reject answers that don't contain the same number of m-line as offer

Otherwise, it segfaults later. Also add test to validate this.

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