webrtcbin: enable forward-unknown-ssrc on rtpfunnel

See also: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7405

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7409>
This commit is contained in:
Matthew Waters 2024-08-26 14:46:59 +10:00 committed by GStreamer Marge Bot
parent 505291ab68
commit 0df80a1bec

View file

@ -6045,6 +6045,10 @@ _connect_rtpfunnel (GstWebRTCBin * webrtc, guint session_id)
goto done;
webrtc->rtpfunnel = gst_element_factory_make ("rtpfunnel", NULL);
if (g_object_class_find_property (G_OBJECT_GET_CLASS (webrtc->rtpfunnel),
"forward-unknown-ssrc") != NULL) {
g_object_set (webrtc->rtpfunnel, "forward-unknown-ssrc", TRUE, NULL);
}
gst_bin_add (GST_BIN (webrtc), webrtc->rtpfunnel);
gst_element_sync_state_with_parent (webrtc->rtpfunnel);