aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 5c42bbe7d..bd052d2af 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -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