webrtcbin: Split pad name from mline
authorOlivier Crête <olivier.crete@collabora.com>
Tue, 23 Mar 2021 21:51:16 +0000 (17:51 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Mon, 12 Apr 2021 21:55:06 +0000 (17:55 -0400)
commitb6114a7fed61f631faf05fe57530ddbda2499376
tree46879606aa3045671e1434ce49e6a79002918ade
parentbd9f675318b74b4450c8e1eca02aed0a45aaa1c6
webrtcbin: Split pad name from mline

The simple case where this breaks is if you add a
datachannel and want to add a new pad (a new media) after). Another
case where this is broken is if the order of the media is forced to
something different by the peer.

It's more simple to just split both things completely. In practice, the
pads will be named in the order in which they are allocated, so it
shouldn't change the current behaviour, just enable new ones.

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