aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-25 19:32:30 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-28 00:33:44 +0800
commit76a7dfdf4fcd250f7787c166da87e1bfa6b70761 (patch)
treeb8536ca286d554506dd4c3664921445c0747059b
parent015746e131559133730f2112777d26c581c6ac50 (diff)
downloadgsoc2013-empathy-76a7dfdf4fcd250f7787c166da87e1bfa6b70761.tar
gsoc2013-empathy-76a7dfdf4fcd250f7787c166da87e1bfa6b70761.tar.gz
gsoc2013-empathy-76a7dfdf4fcd250f7787c166da87e1bfa6b70761.tar.bz2
gsoc2013-empathy-76a7dfdf4fcd250f7787c166da87e1bfa6b70761.tar.lz
gsoc2013-empathy-76a7dfdf4fcd250f7787c166da87e1bfa6b70761.tar.xz
gsoc2013-empathy-76a7dfdf4fcd250f7787c166da87e1bfa6b70761.tar.zst
gsoc2013-empathy-76a7dfdf4fcd250f7787c166da87e1bfa6b70761.zip
disable_camera: disable send video only if we were sending it
-rw-r--r--src/empathy-call-window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 171894adb..1d7b74dc5 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 (