sdpmessage: Annotate SDP message parameters for `parse_uri()` and `parse_buffer(...
authorSebastian Dröge <sebastian@centricular.com>
Tue, 29 Nov 2022 12:02:55 +0000 (14:02 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 29 Nov 2022 12:02:55 +0000 (14:02 +0200)
commit12aa3925d06e67957b466e844eca0e486d261abb
treea9fb4c4da47cc8453a8645725d5f4e67d32a09d5
parenta3b352c99d2ced8d9622072a4fdde9409434c48f
sdpmessage: Annotate SDP message parameters for `parse_uri()` and `parse_buffer()` correctly

They are not actually `out` parameters but must be allocated and
initialized to a valid SDP message by the caller. Just allocating them
without initialization will cause memory corruptions because the
functions will try to clear/append to the existing SDP message.

As such they should be just marked as `transfer none`.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1605

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3484>
subprojects/gst-plugins-base/gst-libs/gst/sdp/gstsdpmessage.c