projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73c7347
)
gl/memory: allocate the correct memory size
author
Matthew Waters
<ystreet00@gmail.com>
Sun, 25 May 2014 01:44:57 +0000
(11:44 +1000)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 9 Dec 2017 19:31:41 +0000
(19:31 +0000)
and avoid wasting resources we will never need
https://bugzilla.gnome.org/show_bug.cgi?id=730703
gst-libs/gst/gl/gstglmemory.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/gl/gstglmemory.c
b/gst-libs/gst/gl/gstglmemory.c
index 90e73a2c56f7e036a9b9b2f14ca893b48d50a80e..4bfc6dbcc26316ff89e8561f6efae14a57cdbc88 100644
(file)
--- 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);