videodec: Ensure update_pool is initialized
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Sun, 16 Nov 2014 21:11:53 +0000 (16:11 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Sun, 16 Nov 2014 21:11:53 +0000 (16:11 -0500)
This was probably not causing any issues, but we would randomly
and needlessly update the pool in the query due to uninitialized
variable.

ext/libav/gstavviddec.c

index a9645f2..5a1b7ed 100644 (file)
@@ -1650,7 +1650,7 @@ gst_ffmpegviddec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
   GstBufferPool *pool;
   guint size, min, max;
   GstStructure *config;
-  gboolean have_videometa, have_alignment, update_pool;
+  gboolean have_videometa, have_alignment, update_pool = FALSE;
   GstAllocator *allocator = NULL;
   GstAllocationParams params = { 0, 15, 0, 0, };