dmabuf: set the initial memory size to the full size
authorMichael Olbrich <m.olbrich@pengutronix.de>
Thu, 16 May 2013 07:07:46 +0000 (09:07 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 16 May 2013 09:17:57 +0000 (11:17 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=700427

gst-libs/gst/allocators/gstdmabuf.c

index 248b70a..95d26bb 100644 (file)
@@ -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);