summaryrefslogtreecommitdiff
path: root/gst/deinterlace
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-04-22 17:29:02 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-04-22 17:29:02 +0200
commit25ed0a30a426dde37d0af11fe1b8d0c211507a80 (patch)
treefe77203b2a8c90fa2b1dcfe1914a95287e30a8c4 /gst/deinterlace
parentf10c3f1a7648f79caaa01d379791d272737913c0 (diff)
deinterlace: Fix compiler warning
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.
Diffstat (limited to 'gst/deinterlace')
-rw-r--r--gst/deinterlace/gstdeinterlace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c
index b669302cd..d81605c3a 100644
--- a/gst/deinterlace/gstdeinterlace.c
+++ b/gst/deinterlace/gstdeinterlace.c
@@ -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;