]> git.0d.be Git - empathy.git/commitdiff
Do not have too complex code in var initialization.
authorXavier Claessens <xclaesse@gmail.com>
Fri, 24 Jul 2009 11:18:30 +0000 (13:18 +0200)
committerXavier Claessens <xclaesse@gmail.com>
Wed, 29 Jul 2009 09:21:42 +0000 (11:21 +0200)
src/empathy-call-window.c

index 520a928215a6707bde1648d1e3771a5fca852195..bd958aada3349a00e2cae25d72c596dc41668099 100644 (file)
@@ -1346,8 +1346,10 @@ empathy_call_window_connected (gpointer user_data)
   EmpathyCallWindow *self = EMPATHY_CALL_WINDOW (user_data);
   EmpathyCallWindowPriv *priv = GET_PRIV (self);
   EmpathyTpCall *call;
-  gboolean can_send_video = priv->video_input != NULL && priv->contact != NULL
-    && empathy_contact_can_voip_video (priv->contact);
+  gboolean can_send_video;
+
+  can_send_video = priv->video_input != NULL && priv->contact != NULL &&
+    empathy_contact_can_voip_video (priv->contact);
 
   g_object_get (priv->handler, "tp-call", &call, NULL);