diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-call-window.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index 8d4849d8b..eda10f131 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -770,6 +770,9 @@ tool_button_camera_off_toggled_cb (GtkToggleToolButton *toggle, return; } + if (priv->camera_state == CAMERA_STATE_OFF) + return; + DEBUG ("disable camera"); disable_camera (self); } @@ -809,6 +812,9 @@ tool_button_camera_preview_toggled_cb (GtkToggleToolButton *toggle, return; } + if (priv->camera_state == CAMERA_STATE_PREVIEW) + return; + DEBUG ("enable preview"); enable_preview (self); } @@ -848,6 +854,9 @@ tool_button_camera_on_toggled_cb (GtkToggleToolButton *toggle, return; } + if (priv->camera_state == CAMERA_STATE_ON) + return; + DEBUG ("enable camera"); enable_camera (self); } |