y4menc: fix uninitialized variable warning
authorMatthieu Bouron <matthieu.bouron@collabora.com>
Mon, 28 Oct 2013 13:31:34 +0000 (13:31 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 28 Oct 2013 14:20:13 +0000 (14:20 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=711011

gst/y4m/gsty4mencode.c

index 4926cb7..f0b304b 100644 (file)
@@ -276,7 +276,7 @@ gst_y4m_encode_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
   timestamp = GST_BUFFER_TIMESTAMP (buf);
 
   if (G_UNLIKELY (!filter->header)) {
-    gboolean tff;
+    gboolean tff = FALSE;
 
     if (GST_VIDEO_INFO_IS_INTERLACED (&filter->info)) {
       tff = GST_BUFFER_FLAG_IS_SET (buf, GST_VIDEO_BUFFER_FLAG_TFF);