From ee04a6e6eba24d20ef4f776514bdba40c8ec6f49 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Sun, 25 May 2014 11:44:57 +1000 Subject: [PATCH] gl/memory: allocate the correct memory size and avoid wasting resources we will never need https://bugzilla.gnome.org/show_bug.cgi?id=730703 --- gst-libs/gst/gl/gstglmemory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/gstglmemory.c b/gst-libs/gst/gl/gstglmemory.c index 90e73a2c56..4bfc6dbcc2 100644 --- a/gst-libs/gst/gl/gstglmemory.c +++ b/gst-libs/gst/gl/gstglmemory.c @@ -563,7 +563,7 @@ _gl_mem_init (GstGLMemory * mem, GstAllocator * allocator, GstMemory * parent, { gsize maxsize; - maxsize = _gl_texture_type_n_bytes (tex_type) * stride * height; + maxsize = stride * height; gst_memory_init (GST_MEMORY_CAST (mem), GST_MEMORY_FLAG_NO_SHARE, allocator, parent, maxsize, 0, 0, maxsize);