mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
xvimagepool: gst_memory_init() does not take ownership of the allocator
This commit is contained in:
parent
45ac6dea64
commit
3c78fcd6b2
1 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ xvimage_memory_share (GstXvImageMemory * mem, gssize offset, gsize size)
|
||||||
sub = g_slice_new (GstXvImageMemory);
|
sub = g_slice_new (GstXvImageMemory);
|
||||||
|
|
||||||
gst_memory_init (GST_MEMORY_CAST (sub), GST_MINI_OBJECT_FLAGS (parent) |
|
gst_memory_init (GST_MEMORY_CAST (sub), GST_MINI_OBJECT_FLAGS (parent) |
|
||||||
GST_MINI_OBJECT_FLAG_LOCK_READONLY, g_object_ref (mem->parent.allocator),
|
GST_MINI_OBJECT_FLAG_LOCK_READONLY, mem->parent.allocator,
|
||||||
&mem->parent, mem->parent.maxsize, mem->parent.align,
|
&mem->parent, mem->parent.maxsize, mem->parent.align,
|
||||||
mem->parent.offset + offset, size);
|
mem->parent.offset + offset, size);
|
||||||
sub->sink = mem->sink;
|
sub->sink = mem->sink;
|
||||||
|
@ -397,7 +397,7 @@ xvimage_memory_alloc (GstXvImageBufferPool * xvpool)
|
||||||
error_caught = FALSE;
|
error_caught = FALSE;
|
||||||
XSetErrorHandler (handler);
|
XSetErrorHandler (handler);
|
||||||
|
|
||||||
gst_memory_init (GST_MEMORY_CAST (mem), 0, g_object_ref (xvpool->allocator),
|
gst_memory_init (GST_MEMORY_CAST (mem), 0, xvpool->allocator,
|
||||||
NULL, mem->size + align, align, offset, mem->size);
|
NULL, mem->size + align, align, offset, mem->size);
|
||||||
|
|
||||||
g_mutex_unlock (&xvimagesink->x_lock);
|
g_mutex_unlock (&xvimagesink->x_lock);
|
||||||
|
|
Loading…
Reference in a new issue