mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
glbufferpool: explicitly initialize a possibly uninitialized variable
The ret variable may be uninitialized and so its contents were undefined and the results were erratic (failing with glvideomixer, succeeding in other cases) P.S. No idea why gcc/clang et al never picked up on this like they normally do (probably due to some optimisation pass figuring out it's only set once...)
This commit is contained in:
parent
25e3e1eb7b
commit
d41e6a5579
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ gst_gl_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
|
||||||
guint max_align, n;
|
guint max_align, n;
|
||||||
GstAllocator *allocator = NULL;
|
GstAllocator *allocator = NULL;
|
||||||
GstAllocationParams alloc_params;
|
GstAllocationParams alloc_params;
|
||||||
gboolean reset = TRUE, ret;
|
gboolean reset = TRUE, ret = TRUE;
|
||||||
gint p;
|
gint p;
|
||||||
|
|
||||||
if (!gst_buffer_pool_config_get_params (config, &caps, NULL, &min_buffers,
|
if (!gst_buffer_pool_config_get_params (config, &caps, NULL, &min_buffers,
|
||||||
|
|
Loading…
Reference in a new issue