gltestsrc: Ensure variable is initialized before usage
authorEdward Hervey <bilboed@bilboed.com>
Fri, 23 Jan 2015 11:41:29 +0000 (12:41 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:53 +0000 (19:31 +0000)
Coverity CID: 1256569

ext/gl/gstgltestsrc.c

index 5a56d4e..8cb0fd1 100644 (file)
@@ -770,7 +770,7 @@ gst_gl_test_src_decide_allocation (GstBaseSrc * basesrc, GstQuery * query)
   guint idx;
   guint out_width, out_height;
   GstGLContext *other_context = NULL;
-  gboolean same_downstream_gl_context;
+  gboolean same_downstream_gl_context = FALSE;
 
   if (!gst_gl_ensure_element_data (src, &src->display, &src->other_context))
     return FALSE;