From: Tim-Philipp Müller Date: Tue, 27 May 2014 12:56:34 +0000 (+0100) Subject: glcolorconvert: fix compiler warning X-Git-Tag: 1.3.3~274 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f1bb8bbe3bfbe4b2dcd083c718002c3a395e126;p=platform%2Fupstream%2Fgst-plugins-bad.git glcolorconvert: fix compiler warning gstglcolorconvert.c:1133:11: error: 'j' may be used uninitialized in this function Was used uninitialized when jumping to out label in error case. --- diff --git a/gst-libs/gst/gl/gstglcolorconvert.c b/gst-libs/gst/gl/gstglcolorconvert.c index f97d37c..246bb6e 100644 --- a/gst-libs/gst/gl/gstglcolorconvert.c +++ b/gst-libs/gst/gl/gstglcolorconvert.c @@ -1130,7 +1130,7 @@ _do_convert (GstGLContext * context, GstGLColorConvert * convert) struct ConvertInfo *c_info = &convert->priv->convert_info; GstMapInfo out_info[GST_VIDEO_MAX_PLANES], in_info[GST_VIDEO_MAX_PLANES]; gboolean res = TRUE; - gint i, j; + gint i, j = 0; out_width = GST_VIDEO_INFO_WIDTH (&convert->out_info); out_height = GST_VIDEO_INFO_HEIGHT (&convert->out_info);