mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
gl/memory: allocate the correct memory size
and avoid wasting resources we will never need https://bugzilla.gnome.org/show_bug.cgi?id=730703
This commit is contained in:
parent
a7866aa9e5
commit
dbffcffaee
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue