]> git.0d.be Git - empathy.git/commitdiff
Fix warning when changing send video button before accepting the call.
authorXavier Claessens <xclaesse@src.gnome.org>
Mon, 21 Apr 2008 14:18:31 +0000 (14:18 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Mon, 21 Apr 2008 14:18:31 +0000 (14:18 +0000)
svn path=/trunk/; revision=1024

src/empathy-call-window.c

index 5c42bbe7dfb1cb4a48957e846aeb8316e4ec9a3c..bd052d2afbf6e02cc14fc739546c6cde4249c2e2 100644 (file)
@@ -179,12 +179,15 @@ call_window_video_button_toggled_cb (GtkWidget *button,
                                      EmpathyCallWindow *window)
 {
   gboolean is_sending;
+  guint status;
 
   is_sending = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button));
 
   empathy_debug (DEBUG_DOMAIN, "Send video toggled - %d", is_sending);
 
-  empathy_tp_call_request_video_stream_direction (window->call, is_sending);
+  g_object_get (window->call, "status", &status, NULL);
+  if (status == EMPATHY_TP_CALL_STATUS_ACCEPTED)
+      empathy_tp_call_request_video_stream_direction (window->call, is_sending);
 }
 
 static void