projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daa98fc
)
allocator: ref_sink() the global sysmem allocator after creation
author
Sebastian Dröge
<sebastian@centricular.com>
Mon, 15 May 2017 11:34:57 +0000
(14:34 +0300)
committer
Sebastian Dröge
<sebastian@centricular.com>
Wed, 17 May 2017 07:40:37 +0000
(10:40 +0300)
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
gst/gstallocator.c
patch
|
blob
|
history
diff --git
a/gst/gstallocator.c
b/gst/gstallocator.c
index
fcab8a1
..
b93c7a3
100644
(file)
--- 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));