From: Nicolas Dufresne Date: Wed, 16 Dec 2015 16:56:08 +0000 (-0500) Subject: glbuffer: Don't pass allocation params X-Git-Tag: 1.19.3~507^2~7410 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=052f41e5c293ec17c038467ed1e7b92b04d494b0;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/gst-libs/gst/gl/gstglbuffer.c b/gst-libs/gst/gl/gstglbuffer.c index 5d8db2e..c133aa8 100644 --- a/gst-libs/gst/gl/gstglbuffer.c +++ b/gst-libs/gst/gl/gstglbuffer.c @@ -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);