dmabuf: set the initial memory size to the full size

https://bugzilla.gnome.org/show_bug.cgi?id=700427
This commit is contained in:
Michael Olbrich 2013-05-16 09:07:46 +02:00 committed by Sebastian Dröge
parent 77405b97ed
commit ced858fa65

View 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);