mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 16:49:20 +00:00
fix ICE crash
fix potential crash when opening property box
This commit is contained in:
parent
8bd7346eda
commit
470227cf85
3 changed files with 10 additions and 4 deletions
|
|
@ -121,8 +121,7 @@ void linphone_core_update_streams(LinphoneCore *lc, LinphoneCall *call, SalMedia
|
|||
}
|
||||
ms_message("No need to restart streams, SDP is unchanged.");
|
||||
return;
|
||||
}
|
||||
else {
|
||||
}else {
|
||||
if (md_changed & SAL_MEDIA_DESCRIPTION_NETWORK_CHANGED) {
|
||||
ms_message("Network parameters have changed, update them.");
|
||||
linphone_core_update_streams_destinations(lc, call, oldmd, new_md);
|
||||
|
|
|
|||
|
|
@ -962,6 +962,12 @@ void linphone_core_update_ice_from_remote_media_description(LinphoneCall *call,
|
|||
ice_check_list_set_state(cl, ICL_Failed);
|
||||
} else if (stream->rtp_port == 0) {
|
||||
ice_session_remove_check_list(call->ice_session, cl);
|
||||
#ifdef VIDEO_ENABLED
|
||||
if (stream->type==SalVideo && call->videostream){
|
||||
video_stream_stop(call->videostream);
|
||||
call->videostream=NULL;
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
if ((stream->ice_pwd[0] != '\0') && (stream->ice_ufrag[0] != '\0'))
|
||||
ice_check_list_set_remote_credentials(cl, stream->ice_ufrag, stream->ice_pwd);
|
||||
|
|
|
|||
|
|
@ -1051,6 +1051,7 @@ void linphone_gtk_fill_video_renderers(GtkWidget *pb){
|
|||
MSList *l=ms_filter_lookup_by_interface(MSFilterVideoDisplayInterface);
|
||||
MSList *elem;
|
||||
int i;
|
||||
int active=-1;
|
||||
const char *current_renderer=linphone_core_get_video_display_filter(lc);
|
||||
GtkListStore *store;
|
||||
GtkCellRenderer *renderer=gtk_cell_renderer_text_new();
|
||||
|
|
@ -1067,10 +1068,10 @@ void linphone_gtk_fill_video_renderers(GtkWidget *pb){
|
|||
gtk_list_store_append(store,&iter);
|
||||
gtk_list_store_set(store,&iter,0,desc->name,1,desc->text,-1);
|
||||
if (current_renderer && strcmp(current_renderer,desc->name)==0)
|
||||
gtk_combo_box_set_active(GTK_COMBO_BOX(combo),i);
|
||||
active=i;
|
||||
}
|
||||
ms_list_free(l);
|
||||
|
||||
if (active!=-1) gtk_combo_box_set_active(GTK_COMBO_BOX(combo),active);
|
||||
}
|
||||
|
||||
void linphone_gtk_show_parameters(void){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue