[empathy] empathy_call_window_set_send_video: don't request video stream if the call is not connected yet
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] empathy_call_window_set_send_video: don't request video stream if the call is not connected yet
- Date: Fri, 27 Nov 2009 16:41:44 +0000 (UTC)
commit e0a94c57e1266deadd58f158989980c91d7ab4ee
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Nov 25 11:44:17 2009 +0000
empathy_call_window_set_send_video: don't request video stream if the call is not connected yet
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 1d7b74d..867a106 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]