From 3f642f3635ac475f2b5a4c9d682a413c93f0ca0b Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 25 May 2011 12:29:21 +0300 Subject: [PATCH] xvimagesink: remove unneded !=NULL checks We check for matching_attr!=NULL right before already. --- sys/xvimage/xvimagesink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 3e0b457..7d3482e 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -1894,8 +1894,8 @@ gst_xvimagesink_xcontext_get (GstXvImageSink * xvimagesink) 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; xcontext->channels_list = g_list_append (xcontext->channels_list, channel); -- 2.7.4