From: Matthew Waters Date: Wed, 2 Apr 2014 12:05:11 +0000 (+1100) Subject: gl: fix array initialization X-Git-Tag: 1.16.2~260^2~378 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58206849b59cffa423699fe1c1c026acebd86713;p=platform%2Fupstream%2Fgst-plugins-base.git gl: fix array initialization --- diff --git a/ext/gl/gstglmosaic.c b/ext/gl/gstglmosaic.c index d5ff754..8405c7c 100644 --- a/ext/gl/gstglmosaic.c +++ b/ext/gl/gstglmosaic.c @@ -251,7 +251,7 @@ gst_gl_mosaic_callback (gpointer stuff) while (count < mosaic->input_frames->len && count < 6) { GstGLMixerFrameData *frame; /* *INDENT-OFF* */ - gfloat v_vertices = { + gfloat v_vertices[] = { /* front face */ 1.0f, 1.0f,-1.0f, 1.0f, 0.0f, 1.0f,-1.0f,-1.0f, 1.0f, 1.0f, diff --git a/ext/gl/gstglvideomixer.c b/ext/gl/gstglvideomixer.c index 1e10bf3..118d767 100644 --- a/ext/gl/gstglvideomixer.c +++ b/ext/gl/gstglvideomixer.c @@ -222,7 +222,7 @@ gst_gl_video_mixer_callback (gpointer stuff) while (count < video_mixer->input_frames->len) { GstGLMixerFrameData *frame; /* *INDENT-OFF* */ - gfloat v_vertices = { + gfloat v_vertices[] = { /* front face */ -1.0,-1.0,-1.0f, 0.0f, 0.0f, 1.0,-1.0,-1.0f, 1.0f, 0.0f, @@ -240,7 +240,7 @@ gst_gl_video_mixer_callback (gpointer stuff) if (!frame || !frame->texture || in_width <= 0 || in_height <= 0) { GST_DEBUG ("skipping texture:%u frame:%p width:%u height %u", - in_tex, frame, in_width, in_height); + frame->texture, frame, in_width, in_height); count++; continue; }