mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 18:20:44 +00:00
glbuffer: Don't pass allocation params
The imported memory has already been allocated, passing allocation parameters with alignment confuses the memory which endup with a size different from maxsize and lead to overrun when the memory is being copied.
This commit is contained in:
parent
b365425dc2
commit
81cb10aa05
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ _gl_buffer_init (GstGLBuffer * mem, GstAllocator * allocator,
|
|||
mem->usage_hints = gl_usage;
|
||||
|
||||
gst_gl_base_memory_init ((GstGLBaseMemory *) mem, allocator, parent, context,
|
||||
params, size, NULL, NULL);
|
||||
NULL, size, NULL, NULL);
|
||||
|
||||
GST_CAT_DEBUG (GST_CAT_GL_BUFFER, "new GL buffer memory:%p size:%"
|
||||
G_GSIZE_FORMAT, mem, mem->mem.mem.maxsize);
|
||||
|
|
Loading…
Reference in a new issue