mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 08:39:20 +00:00
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
This commit is contained in:
parent
0f70ef12ba
commit
7549c9dd37
1 changed files with 7 additions and 3 deletions
|
|
@ -467,9 +467,13 @@ 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, NULL);
|
||||
if (sel){
|
||||
if (strcmp(sel, linphone_core_get_video_device(lc)) != 0){
|
||||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue