Commit 7549c9dd authored by Simon Morlat's avatar Simon Morlat
Browse files

fix problem with video device being set many times for nothing in the property...

fix problem with video device being set many times for nothing in the property box, which creates graph stop/start when in a video call
parent 0f70ef12
...@@ -467,9 +467,13 @@ void linphone_gtk_cam_changed(GtkWidget *w){ ...@@ -467,9 +467,13 @@ void linphone_gtk_cam_changed(GtkWidget *w){
LinphoneCall *call; LinphoneCall *call;
LinphoneCore *lc = linphone_gtk_get_core(); LinphoneCore *lc = linphone_gtk_get_core();
gchar *sel=gtk_combo_box_get_active_text(GTK_COMBO_BOX(w)); gchar *sel=gtk_combo_box_get_active_text(GTK_COMBO_BOX(w));
linphone_core_set_video_device(linphone_gtk_get_core(),sel); if (sel){
if ((call = linphone_core_get_current_call(lc)) != NULL) { if (strcmp(sel, linphone_core_get_video_device(lc)) != 0){
linphone_core_update_call(lc, call, NULL); linphone_core_set_video_device(lc,sel);
if ((call = linphone_core_get_current_call(lc)) != NULL) {
linphone_core_update_call(lc, call, NULL);
}
}
} }
g_free(sel); g_free(sel);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment