mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 10:55:34 +00:00
allocator: ref_sink() the global sysmem allocator after creation
It's not owned by the first one to ask for it, but by this very code. https://bugzilla.gnome.org/show_bug.cgi?id=743062
This commit is contained in:
parent
daa98fc02a
commit
888fc33bc2
1 changed files with 3 additions and 0 deletions
|
@ -594,6 +594,9 @@ _priv_gst_allocator_initialize (void)
|
|||
|
||||
_sysmem_allocator = g_object_new (gst_allocator_sysmem_get_type (), NULL);
|
||||
|
||||
/* Clear floating flag */
|
||||
gst_object_ref_sink (_sysmem_allocator);
|
||||
|
||||
gst_allocator_register (GST_ALLOCATOR_SYSMEM,
|
||||
gst_object_ref (_sysmem_allocator));
|
||||
|
||||
|
|
Loading…
Reference in a new issue