From ab9b54efdd2cdba0a3150a35407d3dcb707323a5 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Sat, 12 Apr 2014 18:24:43 +1000 Subject: [PATCH] gl/color: remove if statement with no effect Coverity 1199698 --- gst-libs/gst/gl/gstglcolorconvert.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/gl/gstglcolorconvert.c b/gst-libs/gst/gl/gstglcolorconvert.c index be32fb8..79e8562 100644 --- a/gst-libs/gst/gl/gstglcolorconvert.c +++ b/gst-libs/gst/gl/gstglcolorconvert.c @@ -1051,9 +1051,8 @@ _init_convert (GstGLContext * context, GstGLColorConvert * convert) if (info->shader_tex_names[i]) gst_gl_shader_set_uniform_1i (convert->shader, info->shader_tex_names[i], i); - if (info->shader_scaling[i]) - gst_gl_shader_set_uniform_2fv (convert->shader, scale_name, 1, - info->shader_scaling[i]); + gst_gl_shader_set_uniform_2fv (convert->shader, scale_name, 1, + info->shader_scaling[i]); g_free (scale_name); } -- 2.7.4