rem: if (GST_IS_COLOR_BALANCE (bvw->priv->balance))
add: if (bvw->priv->balance && GST_IS_COLOR_BALANCE (bvw->priv->balance))
context: bacon_video_widget_set_video_property (BaconVideoWidget *bvw,                                       BaconVideoWidgetVideoProperty type,                                       int value){  g_return_if_fail (bvw != NULL);  g_return_if_fail (BACON_IS_VIDEO_WIDGET (bvw));    if ( !(value < 65535 && value > 0) )    return;    if (GST_IS_COLOR_BALANCE (bvw->priv->balance))    {      const GList *channels_list = NULL;      GstColorBalanceChannel *found_channel = NULL;            channels_list = gst_color_balance_list_channels (bvw->priv->balance);            while (channels_list)        { /* We search for the right channel corresponding to type */          GstColorBalanceChannel *channel = channels_list->data;          if (type == BVW_VIDEO_BRIGHTNESS && channel &&              g_strrstr (channel->label, "BRIGHTNESS"))            {              g_object_ref (channel);              found_channel = channel;            }          else if (type == BVW_VIDEO_CONTRAST && channel &&              g_strrstr (channel->label, "CONTRAST"))            {              g_object_ref (channel);              found_channel = channel;            }          else if (type == BVW_VIDEO_SATURATION && channel &&              g_strrstr (channel->label, "SATURATION"))            {              g_object_ref (channel);              found_channel = channel;            }          else if (type == BVW_VIDEO_HUE && channel &&              g_strrstr (channel->label, "HUE"))            {              g_object_ref (channel);              found_channel = channel;            }          channels_list = g_list_next (channels_list);        }              if (GST_IS_COLOR_BALANCE_CHANNEL (found_channel))        {          value = value * ((double) found_channel->max_value - found_channel->min_value) / 65535 + found_channel->min_value;          gst_color_balance_set_value (bvw->priv->balance, found_channel,                                       value);          g_object_unref (found_channel);        }    }  /* save in gconf */  gconf_client_set_int (bvw->priv->gc, video_props_str[type], value, NULL);}