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/6086>
This commit is contained in:
Sebastian Dröge 2024-02-09 10:50:39 +02:00 committed by GStreamer Marge Bot
parent 502e995677
commit db52137c1a

View file

@ -418,6 +418,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) {