From 758d516a39ce3ee484e185a6e1a2653659f6fd81 Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Wed, 18 Jan 2017 16:23:14 +0100 Subject: [PATCH] Change the video display in real time --- gtk/linphone.h | 1 + gtk/propertybox.c | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gtk/linphone.h b/gtk/linphone.h index 796ee8fb2..56d1eb119 100644 --- a/gtk/linphone.h +++ b/gtk/linphone.h @@ -39,6 +39,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #undef alloca #endif #include "linphone/core.h" +#include "private.h" #include "linphone/ldapprovider.h" diff --git a/gtk/propertybox.c b/gtk/propertybox.c index e49be0758..3a0e5de8a 100644 --- a/gtk/propertybox.c +++ b/gtk/propertybox.c @@ -464,8 +464,14 @@ void linphone_gtk_alsa_special_device_changed(GtkWidget *w){ } void linphone_gtk_cam_changed(GtkWidget *w){ + LinphoneCall *call; + LinphoneCore *lc = linphone_gtk_get_core(); gchar *sel=gtk_combo_box_get_active_text(GTK_COMBO_BOX(w)); linphone_core_set_video_device(linphone_gtk_get_core(),sel); + if ((call = linphone_core_get_current_call(lc)) != NULL) { + //linphone_core_update_call(lc, call, call->params); + video_stream_change_camera(call->videostream, lc->video_conf.device); + } g_free(sel); } @@ -1854,7 +1860,7 @@ void linphone_gtk_tunnel_ok(GtkButton *button){ linphone_tunnel_config_set_host(config, host); linphone_tunnel_config_set_port(config, port); linphone_tunnel_add_server(tunnel, config); - + if (enabled){ mode = LinphoneTunnelModeEnable; }else if (autodetect){