]> git.0d.be Git - empathy.git/commitdiff
Do not request video stream until the user click on the 'send video' box.
authorXavier Claessens <xclaesse@src.gnome.org>
Fri, 2 May 2008 00:58:49 +0000 (00:58 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 2 May 2008 00:58:49 +0000 (00:58 +0000)
svn path=/trunk/; revision=1076

libempathy/empathy-tp-call.c

index c5e977d1ce11b9cc5cbcf3cf676a56ad50a3d96a..8e1ba52b907caa61771036575e0910756508cedf 100644 (file)
@@ -266,15 +266,6 @@ tp_call_request_streams_for_capabilities (EmpathyTpCall *call,
   g_array_free (stream_types, TRUE);
 }
 
-static void
-tp_call_request_streams (EmpathyTpCall *call)
-{
-  EmpathyTpCallPriv *priv = GET_PRIV (call);
-
-  tp_call_request_streams_for_capabilities (call,
-      empathy_contact_get_capabilities (priv->contact));
-}
-
 static void
 tp_call_member_added_cb (EmpathyTpGroup *group,
                          EmpathyContact *contact,
@@ -290,10 +281,11 @@ tp_call_member_added_cb (EmpathyTpGroup *group,
       priv->contact = g_object_ref (contact);
       priv->is_incoming = TRUE;
       priv->status = EMPATHY_TP_CALL_STATUS_PENDING;
-      tp_call_request_streams (call);
       g_object_notify (G_OBJECT (call), "is-incoming");
       g_object_notify (G_OBJECT (call), "contact"); 
       g_object_notify (G_OBJECT (call), "status");     
+      tp_call_request_streams_for_capabilities (call,
+          EMPATHY_CAPABILITIES_AUDIO);
     }
 
   if (priv->status == EMPATHY_TP_CALL_STATUS_PENDING &&
@@ -320,10 +312,11 @@ tp_call_remote_pending_cb (EmpathyTpGroup *group,
       priv->contact = g_object_ref (contact);
       priv->is_incoming = FALSE;
       priv->status = EMPATHY_TP_CALL_STATUS_PENDING;
-      tp_call_request_streams (call);
       g_object_notify (G_OBJECT (call), "is-incoming");
       g_object_notify (G_OBJECT (call), "contact"); 
       g_object_notify (G_OBJECT (call), "status");     
+      tp_call_request_streams_for_capabilities (call,
+          EMPATHY_CAPABILITIES_AUDIO);
     }
 }