xvimagesink: remove unneded !=NULL checks
authorStefan Kost <ensonic@users.sf.net>
Wed, 25 May 2011 09:29:21 +0000 (12:29 +0300)
committerStefan Kost <ensonic@users.sf.net>
Wed, 25 May 2011 09:29:21 +0000 (12:29 +0300)
We check for matching_attr!=NULL right before already.

sys/xvimage/xvimagesink.c

index 3e0b457cb231580fcff8028f7891de70b7ed99e5..7d3482ed833ae207a51327e12b059486d8446690 100644 (file)
@@ -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);