aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 732f45e8a..6e2df7961 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -4175,3 +4175,16 @@ empathy_call_window_get_video_src (EmpathyCallWindow *self)
{
return EMPATHY_GST_VIDEO_SRC (self->priv->video_input);
}
+
+void
+empathy_call_window_change_webcam (EmpathyCallWindow *self,
+ const gchar *device)
+{
+ EmpathyGstVideoSrc *video;
+
+ video = empathy_call_window_get_video_src (self);
+
+ empathy_call_window_play_camera (self, FALSE);
+ empathy_video_src_change_device (video, device);
+ empathy_call_window_play_camera (self, TRUE);
+}