mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
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:
parent
2584cd90e3
commit
adf80ad1a7
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue