aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/empathy-call-window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 1d7b74dc5..867a10654 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -2356,6 +2356,9 @@ empathy_call_window_set_send_video (EmpathyCallWindow *window,
default. */
display_video_preview (window, send);
+ if (priv->call_state != CONNECTED)
+ return;
+
g_object_get (priv->handler, "tp-call", &call, NULL);
DEBUG ("%s sending video", send ? "start": "stop");
empathy_tp_call_request_video_stream_direction (call, send);