webrtcbin: try harder not to pick duplicate media ids 73/263473/1
authorMathieu Duponchelle <mathieu@centricular.com>
Tue, 22 Dec 2020 01:29:03 +0000 (02:29 +0100)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 3 Sep 2021 06:27:32 +0000 (15:27 +0900)
commit9eff189b733041fee93cc72fe3f63ae6a7b6226e
tree2209ec6c39e8763ab26b7baf60cb964696333c79
parent7828c889f7747bd840b19eb5b2880c5b982423a9
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.

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