aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-25 19:44:17 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-28 00:33:44 +0800
commite0a94c57e1266deadd58f158989980c91d7ab4ee (patch)
treea8dec7841dcb620a52866c38f1512856c98ef61d
parent76a7dfdf4fcd250f7787c166da87e1bfa6b70761 (diff)
downloadgsoc2013-empathy-e0a94c57e1266deadd58f158989980c91d7ab4ee.tar
gsoc2013-empathy-e0a94c57e1266deadd58f158989980c91d7ab4ee.tar.gz
gsoc2013-empathy-e0a94c57e1266deadd58f158989980c91d7ab4ee.tar.bz2
gsoc2013-empathy-e0a94c57e1266deadd58f158989980c91d7ab4ee.tar.lz
gsoc2013-empathy-e0a94c57e1266deadd58f158989980c91d7ab4ee.tar.xz
gsoc2013-empathy-e0a94c57e1266deadd58f158989980c91d7ab4ee.tar.zst
gsoc2013-empathy-e0a94c57e1266deadd58f158989980c91d7ab4ee.zip
empathy_call_window_set_send_video: don't request video stream if the call is not connected yet
-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);