summaryrefslogtreecommitdiff
path: root/gst-libs/gst/gl/gstglbuffer.c
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2015-12-16 11:56:08 -0500
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2015-12-16 12:07:17 -0500
commit052f41e5c293ec17c038467ed1e7b92b04d494b0 (patch)
tree643bf9752e688f180f3aa47aacf39395e427cf24 /gst-libs/gst/gl/gstglbuffer.c
parentb2e689890f046d9679932347e08648b4bc2f3d93 (diff)
downloadgstreamer-plugins-bad-052f41e5c293ec17c038467ed1e7b92b04d494b0.tar.gz
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.
Diffstat (limited to 'gst-libs/gst/gl/gstglbuffer.c')
-rw-r--r--gst-libs/gst/gl/gstglbuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/gl/gstglbuffer.c b/gst-libs/gst/gl/gstglbuffer.c
index 5d8db2ede..c133aa828 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);