https://bugzilla.gnome.org/show_bug.cgi?id=664459
{
return EMPATHY_GST_VIDEO_SRC (self->priv->video_input);
}
{
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);
+}
void empathy_call_window_play_camera (EmpathyCallWindow *self,
gboolean play);
void empathy_call_window_play_camera (EmpathyCallWindow *self,
gboolean play);
+void empathy_call_window_change_webcam (EmpathyCallWindow *self,
+ const gchar *device);
+
G_END_DECLS
#endif /* #ifndef __EMPATHY_CALL_WINDOW_H__*/
G_END_DECLS
#endif /* #ifndef __EMPATHY_CALL_WINDOW_H__*/
if (!tp_strdiff (device, current_device))
goto out;
if (!tp_strdiff (device, current_device))
goto out;
- empathy_call_window_play_camera (self->priv->window, FALSE);
- empathy_video_src_change_device (video, device);
- empathy_call_window_play_camera (self->priv->window, TRUE);
+ empathy_call_window_change_webcam (self->priv->window, device);
out:
g_free (current_device);
out:
g_free (current_device);