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:
parent
8a65fa40c7
commit
2aeca9ed84
@ -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 =
|
||||
|
@ -95,6 +95,7 @@ struct _GstWebRTCBinClass
|
||||
struct _GstWebRTCBinPrivate
|
||||
{
|
||||
guint max_sink_pad_serial;
|
||||
guint src_pad_counter;
|
||||
|
||||
gboolean bundle;
|
||||
GPtrArray *transceivers;
|
||||
|
Loading…
x
Reference in New Issue
Block a user