rtphdrext: Return non-floating references from gst_rtp_header_extension_create_from_uri()

The header extension objects are never getting a parent object and using
floating references only complicates usage, especially via dynamic API
like signals.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1582>
This commit is contained in:
Sebastian Dröge 2022-01-27 14:22:26 +02:00 committed by GStreamer Marge Bot
parent 2584cd90e3
commit adf80ad1a7

View file

@ -858,6 +858,8 @@ gst_rtp_header_extension_create_from_uri (const gchar * uri)
g_list_free_full (l, (GDestroyNotify) gst_object_unref);
gst_object_ref_sink (element);
return GST_RTP_HEADER_EXTENSION (element);
}