mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
webrtcbin: fix ulpfecenc passthrough pt
ulpfecenc uses a value of pt=255 for passthrough. Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1075 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1914>
This commit is contained in:
parent
5d298b98da
commit
ccd1b76625
1 changed files with 6 additions and 1 deletions
|
@ -4599,7 +4599,12 @@ _set_internal_rtpbin_element_props_from_stream (GstWebRTCBin * webrtc,
|
|||
trans, ulpfec_pt, red_pt);
|
||||
|
||||
if (trans->ulpfecenc) {
|
||||
g_object_set (trans->ulpfecenc, "pt", ulpfec_pt, "multipacket",
|
||||
guint ulpfecenc_pt = ulpfec_pt;
|
||||
|
||||
if (ulpfecenc_pt == 0)
|
||||
ulpfecenc_pt = 255;
|
||||
|
||||
g_object_set (trans->ulpfecenc, "pt", ulpfecenc_pt, "multipacket",
|
||||
rtp_trans->kind == GST_WEBRTC_KIND_VIDEO, "percentage",
|
||||
trans->fec_percentage, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue