dmabuf: set the initial memory size to the full size
https://bugzilla.gnome.org/show_bug.cgi?id=700427
This commit is contained in:
parent
77405b97ed
commit
ced858fa65
@ -274,7 +274,7 @@ gst_dmabuf_allocator_alloc (GstAllocator * allocator, gint fd, gsize size)
|
|||||||
|
|
||||||
mem = g_slice_new0 (GstDmaBufMemory);
|
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;
|
mem->fd = fd;
|
||||||
g_mutex_init (&mem->lock);
|
g_mutex_init (&mem->lock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user