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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4344>
This commit is contained in:
Sebastian Dröge 2023-04-04 19:21:56 +03:00 committed by GStreamer Marge Bot
parent 601b306aaa
commit 2c3a1d0006

View file

@ -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 */