diff options
author | Debarshi Ray <debarshir@src.gnome.org> | 2012-11-08 21:51:04 +0800 |
---|---|---|
committer | Debarshi Ray <debarshir@gnome.org> | 2012-11-09 19:00:03 +0800 |
commit | 34b5179278427a9654d1743d91091a5a2d6400aa (patch) | |
tree | 73324ed036fe40a165e7b115463ff21b103181d7 /src/empathy-call-window.c | |
parent | 26d065a98a9dab0c204f3d375f5d232585523fd2 (diff) | |
download | gsoc2013-empathy-34b5179278427a9654d1743d91091a5a2d6400aa.tar gsoc2013-empathy-34b5179278427a9654d1743d91091a5a2d6400aa.tar.gz gsoc2013-empathy-34b5179278427a9654d1743d91091a5a2d6400aa.tar.bz2 gsoc2013-empathy-34b5179278427a9654d1743d91091a5a2d6400aa.tar.lz gsoc2013-empathy-34b5179278427a9654d1743d91091a5a2d6400aa.tar.xz gsoc2013-empathy-34b5179278427a9654d1743d91091a5a2d6400aa.tar.zst gsoc2013-empathy-34b5179278427a9654d1743d91091a5a2d6400aa.zip |
empathy-call: Handle yanking out of current video input
If the current video input is yanked out, we continue the call with
only audio and desensitize the camera menu. Once the call is over we
sensitize it again and continue.
Fixes: https://bugzilla.gnome.org/687928
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r-- | src/empathy-call-window.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index 64cda3d01..91d02a195 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -2617,6 +2617,13 @@ empathy_call_window_disconnected (EmpathyCallWindow *self, gtk_action_set_sensitive (priv->menu_fullscreen, FALSE); gtk_widget_set_sensitive (priv->dtmf_panel, FALSE); + /* Create the video input and then turn on the camera + * menu, so that the active camera gets marked as such. + */ + if (priv->video_input == NULL) + create_video_input (self); + empathy_camera_menu_set_sensitive (priv->camera_menu, TRUE); + could_reset_pipeline = empathy_call_window_reset_pipeline (self); if (priv->call_state == CONNECTING) @@ -3644,6 +3651,7 @@ empathy_call_window_remove_video_input (EmpathyCallWindow *self) priv->video_preview = NULL; gtk_widget_set_sensitive (priv->camera_button, FALSE); + empathy_camera_menu_set_sensitive (priv->camera_menu, FALSE); } static void |