webrtcbin: try harder not to pick duplicate media ids
authorMathieu Duponchelle <mathieu@centricular.com>
Tue, 22 Dec 2020 01:29:03 +0000 (02:29 +0100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 8 Jan 2021 20:22:57 +0000 (20:22 +0000)
commit88e007fb21feaa06a7a4779ed6081d2c9f0b0292
tree05841469d151e7edc46f82edec580b1c7a24dd0a
parentad3fb007e19e334930389b1a1f8b498159821c9e
webrtcbin: try harder not to pick duplicate media ids

On renegotiation, or when the user has specified a mid for
a transceiver, we need to avoid picking a duplicate mid for
a transceiver that doesn't yet have one.

Also assign the mid we created to the transceiver, that doesn't
fix a specific bug but seems to make sense to me.

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