summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-05-15 14:34:57 +0300
committerSebastian Dröge <sebastian@centricular.com>2017-05-17 10:40:37 +0300
commit888fc33bc2aedb0fe6832cc104b83c22a348fd09 (patch)
tree2ba6ef5e033a5394fd3ed73ce3c13fcefaa8126c
parentdaa98fc02a7bece11709b485645320c00bcd6599 (diff)
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
-rw-r--r--gst/gstallocator.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/gstallocator.c b/gst/gstallocator.c
index fcab8a187..b93c7a3a8 100644
--- a/gst/gstallocator.c
+++ b/gst/gstallocator.c
@@ -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));