sdpdemux: add media attributes to caps to fix ptp clock handling
authorTim-Philipp Müller <tim@centricular.com>
Thu, 10 Mar 2022 18:40:12 +0000 (18:40 +0000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 10 Mar 2022 20:49:36 +0000 (20:49 +0000)
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/1924>

subprojects/gst-plugins-bad/gst/sdp/gstsdpdemux.c

index 6b1c580..5d18b6b 100644 (file)
@@ -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