diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-11-21 18:43:51 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-11-23 17:59:52 +0800 |
commit | d15f750dcfb31415cb6d8d39122593863e7fcd37 (patch) | |
tree | 93f0239c67432c62c1867432e04abc359b85b4ea /src/empathy-call-window.c | |
parent | 24882e924af2c0d8576970440d92ac5b4eb25bc8 (diff) | |
download | gsoc2013-empathy-d15f750dcfb31415cb6d8d39122593863e7fcd37.tar gsoc2013-empathy-d15f750dcfb31415cb6d8d39122593863e7fcd37.tar.gz gsoc2013-empathy-d15f750dcfb31415cb6d8d39122593863e7fcd37.tar.bz2 gsoc2013-empathy-d15f750dcfb31415cb6d8d39122593863e7fcd37.tar.lz gsoc2013-empathy-d15f750dcfb31415cb6d8d39122593863e7fcd37.tar.xz gsoc2013-empathy-d15f750dcfb31415cb6d8d39122593863e7fcd37.tar.zst gsoc2013-empathy-d15f750dcfb31415cb6d8d39122593863e7fcd37.zip |
factor out empathy_call_window_change_webcam()
https://bugzilla.gnome.org/show_bug.cgi?id=664459
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r-- | src/empathy-call-window.c | 13 |
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); +} |