mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
webrtcbin: tracked maximum pad serial better
If a sink pad with a specific index is requested, also increase the maximum pad serial number if necessary, so that mixing fixed sink_X requests with unspecific sink_%u requests works. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7237>
This commit is contained in:
parent
825f52d38b
commit
87a7a7567f
1 changed files with 3 additions and 0 deletions
|
@ -8285,6 +8285,9 @@ gst_webrtc_bin_request_new_pad (GstElement * element, GstPadTemplate * templ,
|
|||
/* parse serial number from requested padname */
|
||||
serial = g_ascii_strtoull (&name[5], NULL, 10);
|
||||
lock_mline = TRUE;
|
||||
if (serial >= webrtc->priv->max_sink_pad_serial) {
|
||||
webrtc->priv->max_sink_pad_serial = serial + 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (lock_mline) {
|
||||
|
|
Loading…
Reference in a new issue