diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-25 11:44:17 +0000 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-27 16:33:44 +0000 |
commit | e0a94c57e1266deadd58f158989980c91d7ab4ee (patch) | |
tree | a8dec7841dcb620a52866c38f1512856c98ef61d | |
parent | 76a7dfdf4fcd250f7787c166da87e1bfa6b70761 (diff) |
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.c | 3 |
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); |