webrtcbin: Store pending mid to make create-offer idempotent
authorOlivier Crête <olivier.crete@collabora.com>
Mon, 16 May 2022 21:17:13 +0000 (17:17 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Fri, 2 Sep 2022 09:52:58 +0000 (11:52 +0200)
commit3503599e0a27b64dd0da59ebd70e2ab268221535
tree9e8e2b8eb865912601ce850578234063f997ae7a
parent3c9e4f488602794473d9d4e2b6fc67670a401424
webrtcbin: Store pending mid to make create-offer idempotent

If the mid is not stored in the transceiver, but it is stored in
last_offer, then a further create-offer call will just ignore that
transceiver.

Also include unit test for ensure it doesn't regress.

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