From ced858fa657abe7422e0d5da3a7247570fef7605 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Thu, 16 May 2013 09:07:46 +0200 Subject: [PATCH] dmabuf: set the initial memory size to the full size https://bugzilla.gnome.org/show_bug.cgi?id=700427 --- gst-libs/gst/allocators/gstdmabuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/allocators/gstdmabuf.c b/gst-libs/gst/allocators/gstdmabuf.c index 248b70a848..95d26bbce4 100644 --- a/gst-libs/gst/allocators/gstdmabuf.c +++ b/gst-libs/gst/allocators/gstdmabuf.c @@ -274,7 +274,7 @@ gst_dmabuf_allocator_alloc (GstAllocator * allocator, gint fd, gsize size) mem = g_slice_new0 (GstDmaBufMemory); - gst_memory_init (GST_MEMORY_CAST (mem), 0, allocator, NULL, size, 0, 0, 0); + gst_memory_init (GST_MEMORY_CAST (mem), 0, allocator, NULL, size, 0, 0, size); mem->fd = fd; g_mutex_init (&mem->lock);