From a17209220fa282859bc54be6b2a61b15641e5553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 4 Apr 2023 19:21:56 +0300 Subject: [PATCH] sdp: Skip source-specific caps fields when creating an SDP media from caps Regression from https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2132 We parse the source-specific fields from the SDP and put it into the caps, but when converting caps into an SDP again this would need special handling. By default it would end up as part of the fmtp field, which is simply wrong. Automatically putting it into the caps and SDP will need some more work. Part-of: --- subprojects/gst-plugins-base/gst-libs/gst/sdp/gstsdpmessage.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/sdp/gstsdpmessage.c b/subprojects/gst-plugins-base/gst-libs/gst/sdp/gstsdpmessage.c index 1de3849281..b62101302f 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/sdp/gstsdpmessage.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/sdp/gstsdpmessage.c @@ -3912,6 +3912,8 @@ gst_sdp_media_set_media_from_caps (const GstCaps * caps, GstSDPMedia * media) continue; if (g_str_has_prefix (fname, "rtcp-fb-")) continue; + if (g_str_has_prefix (fname, "ssrc-")) + continue; if (!strcmp (fname, "a-framesize")) { /* a-framesize attribute */