sdpdemux: Add SDP message (aka session) attributes to the caps too

They apply to all medias, and if overridden by the specific media then
they would also be overridden just below in the created caps.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6079>
This commit is contained in:
Sebastian Dröge 2024-02-09 10:50:39 +02:00 committed by GStreamer Marge Bot
parent b4ee86d1e7
commit 2c8f232d79

View file

@ -672,6 +672,7 @@ 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_message_attributes_to_caps (sdp, stream->caps);
gst_sdp_media_attributes_to_caps (media, stream->caps);
if (stream->pt >= 96) {