summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2014-10-28 18:01:27 +1100
committerMatthew Waters <matthew@centricular.com>2014-10-28 18:05:34 +1100
commit5181967da9de271f7144e35114a6b013ae228818 (patch)
tree2fde2b14b035391c7cdff521491f14fb0022b0ad
parent5f207ec84032647d817f5a9acc8c862fd01800d9 (diff)
downloadgstreamer-plugins-bad-5181967da9de271f7144e35114a6b013ae228818.tar.gz
glfilter: avoid uninitialized variable size when chaining multiple glfilters
https://bugzilla.gnome.org/show_bug.cgi?id=739277
-rw-r--r--gst-libs/gst/gl/gstglfilter.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstglfilter.c b/gst-libs/gst/gl/gstglfilter.c
index a589c17b2..26bf3f903 100644
--- a/gst-libs/gst/gl/gstglfilter.c
+++ b/gst-libs/gst/gl/gstglfilter.c
@@ -909,6 +909,10 @@ gst_gl_filter_propose_allocation (GstBaseTransform * trans,
if (decide_pool && GST_IS_GL_BUFFER_POOL (decide_pool)
&& gst_caps_is_equal_fixed (decide_caps, caps)) {
+ config = gst_buffer_pool_get_config (pool);
+ gst_buffer_pool_config_get_params (config, NULL, &size, NULL, NULL);
+ gst_structure_free (config);
+
pool = decide_pool;
} else {
GST_DEBUG_OBJECT (filter, "create new pool");