From db52137c1a6c1c86602d41c476cb2e40c4300014 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 cc5baa6c4d..4c67214812 100644 --- a/subprojects/gst-plugins-bad/gst/sdp/gstsdpdemux.c +++ b/subprojects/gst-plugins-bad/gst/sdp/gstsdpdemux.c @@ -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) {