From: Sebastian Dröge Date: Sun, 24 Feb 2013 08:45:19 +0000 (+0100) Subject: xvimagepool: gst_memory_init() does not take ownership of the allocator X-Git-Tag: 1.1.1~321 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c78fcd6b26f17247c0ac31b22779bd408f714d8;p=platform%2Fupstream%2Fgst-plugins-base.git xvimagepool: gst_memory_init() does not take ownership of the allocator --- diff --git a/sys/xvimage/xvimagepool.c b/sys/xvimage/xvimagepool.c index e38c1ec..31673bb 100644 --- a/sys/xvimage/xvimagepool.c +++ b/sys/xvimage/xvimagepool.c @@ -171,7 +171,7 @@ xvimage_memory_share (GstXvImageMemory * mem, gssize offset, gsize size) sub = g_slice_new (GstXvImageMemory); 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.offset + offset, size); sub->sink = mem->sink; @@ -397,7 +397,7 @@ xvimage_memory_alloc (GstXvImageBufferPool * xvpool) error_caught = FALSE; 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); g_mutex_unlock (&xvimagesink->x_lock);