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
@ -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…
x
Reference in New Issue
Block a user