mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +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
73c73470a0
commit
ee04a6e6eb
1 changed files with 1 additions and 1 deletions
|
@ -563,7 +563,7 @@ _gl_mem_init (GstGLMemory * mem, GstAllocator * allocator, GstMemory * parent,
|
||||||
{
|
{
|
||||||
gsize maxsize;
|
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,
|
gst_memory_init (GST_MEMORY_CAST (mem), GST_MEMORY_FLAG_NO_SHARE,
|
||||||
allocator, parent, maxsize, 0, 0, maxsize);
|
allocator, parent, maxsize, 0, 0, maxsize);
|
||||||
|
|
Loading…
Reference in a new issue