deinterlace: Fix compiler warning
authorSebastian Dröge <sebastian@centricular.com>
Tue, 22 Apr 2014 15:29:02 +0000 (17:29 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 22 Apr 2014 15:29:02 +0000 (17:29 +0200)
gstdeinterlace.c: In function 'gst_deinterlace_output_frame':
gstdeinterlace.c:1537:57: error: 'pattern.length' may be used uninitialized in this function [-Werror=maybe-uninitialized]

This actually is always initialized before it is used there, but
let's just silence gcc here.

gst/deinterlace/gstdeinterlace.c

index b669302..d81605c 100644 (file)
@@ -1497,6 +1497,8 @@ gst_deinterlace_output_frame (GstDeinterlace * self, gboolean flushing)
   guint8 phase, count;
   const GstDeinterlaceLocking locking = self->locking;
 
+  memset (&pattern, 0, sizeof (pattern));
+
 restart:
   ret = GST_FLOW_OK;
   fields_required = 0;