From: Vincent Penquerc'h Date: Thu, 10 Apr 2014 14:55:57 +0000 (+0100) Subject: xvimage: remove dead code X-Git-Tag: 1.3.1~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43ce84e0f4ed9f82b78d14ba92478dcab90893c1;p=platform%2Fupstream%2Fgst-plugins-base.git xvimage: remove dead code matching_attr can not be NULL here, we've tested that away a few lines beforehand. Coverity 1139655 --- diff --git a/sys/xvimage/xvcontext.c b/sys/xvimage/xvcontext.c index d89ea48..146e4a5 100644 --- a/sys/xvimage/xvcontext.c +++ b/sys/xvimage/xvcontext.c @@ -738,8 +738,8 @@ gst_xvcontext_new (GstXvContextConfig * config, GError ** error) channel = g_object_new (GST_TYPE_COLOR_BALANCE_CHANNEL, NULL); channel->label = g_strdup (channels[i]); - channel->min_value = matching_attr ? matching_attr->min_value : -1000; - channel->max_value = matching_attr ? matching_attr->max_value : 1000; + channel->min_value = matching_attr->min_value; + channel->max_value = matching_attr->max_value; context->channels_list = g_list_append (context->channels_list, channel);