{
EmpathyCallWindowPriv *priv = GET_PRIV (self);
+ if (priv->camera_state == CAMERA_STATE_OFF)
+ return;
+
+ DEBUG ("disable camera");
+
display_video_preview (self, FALSE);
empathy_call_window_set_send_video (self, FALSE);
return;
}
- if (priv->camera_state == CAMERA_STATE_OFF)
- return;
-
- DEBUG ("disable camera");
disable_camera (self);
}
{
EmpathyCallWindowPriv *priv = GET_PRIV (self);
+ if (priv->camera_state == CAMERA_STATE_PREVIEW)
+ return;
+
+ DEBUG ("enable preview");
+
if (priv->camera_state == CAMERA_STATE_ON)
/* preview is already displayed so we just have to stop sending */
empathy_call_window_set_send_video (self, FALSE);
return;
}
- if (priv->camera_state == CAMERA_STATE_PREVIEW)
- return;
-
- DEBUG ("enable preview");
enable_preview (self);
}
{
EmpathyCallWindowPriv *priv = GET_PRIV (self);
+ if (priv->camera_state == CAMERA_STATE_ON)
+ return;
+
+ DEBUG ("enable camera");
+
empathy_call_window_set_send_video (self, TRUE);
block_camera_control_signals (self);
return;
}
- if (priv->camera_state == CAMERA_STATE_ON)
- return;
-
- DEBUG ("enable camera");
enable_camera (self);
}