From 2c8f232d79a46845a14862ff64d75c44702a5f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 9 Feb 2024 10:50:39 +0200 Subject: [PATCH] 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: --- subprojects/gst-plugins-bad/gst/sdp/gstsdpdemux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-bad/gst/sdp/gstsdpdemux.c b/subprojects/gst-plugins-bad/gst/sdp/gstsdpdemux.c index 25752fb58d..3c09ecf593 100644 --- a/subprojects/gst-plugins-bad/gst/sdp/gstsdpdemux.c +++ b/subprojects/gst-plugins-bad/gst/sdp/gstsdpdemux.c @@ -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) {