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/1924>
This commit is contained in:
Tim-Philipp Müller 2022-03-10 18:40:12 +00:00 committed by GStreamer Marge Bot
parent 67df5815a9
commit 6fec258930

View 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