From 41c1d913df443cac3c8ee90efad9b65b146b7ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= <tim@centricular.com> Date: Thu, 10 Mar 2022 18:40:12 +0000 Subject: [PATCH] sdpdemux: add media attributes to caps to fix ptp clock handling Those are needed by rtpjitterbuffer to do the right thing, e.g. a=ts-refclk:ptp=IEEE1588-2008:00-**-**-**-**-**-**-**:0 a=mediaclk:direct=1266592257 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1925> --- subprojects/gst-plugins-bad/gst/sdp/gstsdpdemux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-bad/gst/sdp/gstsdpdemux.c b/subprojects/gst-plugins-bad/gst/sdp/gstsdpdemux.c index 6b1c5803f4..5d18b6b35f 100644 --- a/subprojects/gst-plugins-bad/gst/sdp/gstsdpdemux.c +++ b/subprojects/gst-plugins-bad/gst/sdp/gstsdpdemux.c @@ -402,6 +402,8 @@ gst_sdp_demux_create_stream (GstSDPDemux * demux, GstSDPMessage * sdp, gint idx) s = gst_caps_get_structure (stream->caps, 0); gst_structure_set_name (s, "application/x-rtp"); + gst_sdp_media_attributes_to_caps (media, stream->caps); + if (stream->pt >= 96) { /* If we have a dynamic payload type, see if we have a stream with the * same payload number. If there is one, they are part of the same