webrtcbin: don't name src pads based on the mline specifically anymore

Naming based on the mline doesn't really work with e.g. simulcast
scenarios.

It is entirely possible to retrieve the transceiver and then the mline
from that if that is so required.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1664>
This commit is contained in:
Matthew Waters 2021-11-03 20:46:23 +11:00 committed by GStreamer Marge Bot
parent 8a65fa40c7
commit 2aeca9ed84
2 changed files with 2 additions and 1 deletions

View file

@ -4432,7 +4432,7 @@ _create_pad_for_sdp_media (GstWebRTCBin * webrtc, GstPadDirection direction,
if (serial == G_MAXUINT)
serial = webrtc->priv->max_sink_pad_serial++;
} else {
serial = trans->mline;
serial = webrtc->priv->src_pad_counter++;
}
pad_name =

View file

@ -95,6 +95,7 @@ struct _GstWebRTCBinClass
struct _GstWebRTCBinPrivate
{
guint max_sink_pad_serial;
guint src_pad_counter;
gboolean bundle;
GPtrArray *transceivers;