[empathy] disable_camera: disable send video only if we were sending it



commit 76a7dfdf4fcd250f7787c166da87e1bfa6b70761
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Nov 25 11:32:30 2009 +0000

    disable_camera: disable send video only if we were sending it

 src/empathy-call-window.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 171894a..1d7b74d 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -743,7 +743,9 @@ disable_camera (EmpathyCallWindow *self)
   DEBUG ("disable camera");
 
   display_video_preview (self, FALSE);
-  empathy_call_window_set_send_video (self, FALSE);
+
+  if (priv->camera_state == CAMERA_STATE_ON)
+    empathy_call_window_set_send_video (self, FALSE);
 
   block_camera_control_signals (self);
   gtk_toggle_tool_button_set_active (GTK_TOGGLE_TOOL_BUTTON (



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]