mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 03:28:07 +00:00
Fix problem with event queue being reset by account creator of liblinphone_tester
This commit is contained in:
parent
31f304b9d0
commit
28ae2ec0bd
2 changed files with 4 additions and 6 deletions
|
|
@ -1650,10 +1650,9 @@ static void linphone_core_init(LinphoneCore * lc, const LinphoneCoreVTable *vtab
|
|||
ms_init();
|
||||
|
||||
linphone_core_register_default_codecs(lc);
|
||||
/* create a mediastreamer2 event queue and set it as global */
|
||||
/* Get the mediastreamer2 event queue */
|
||||
/* This allows to run event's callback in linphone_core_iterate() */
|
||||
lc->msevq=ms_event_queue_new();
|
||||
ms_set_global_event_queue(lc->msevq);
|
||||
lc->msevq=ms_factory_get_event_queue(ms_factory_get_fallback());
|
||||
|
||||
lc->sal=sal_init();
|
||||
|
||||
|
|
@ -6326,7 +6325,6 @@ static void linphone_core_uninit(LinphoneCore *lc)
|
|||
}
|
||||
#endif
|
||||
|
||||
ms_event_queue_destroy(lc->msevq);
|
||||
lc->msevq=NULL;
|
||||
/* save all config */
|
||||
ui_config_uninit(lc);
|
||||
|
|
|
|||
|
|
@ -261,7 +261,7 @@ bool_t call_with_params2(LinphoneCoreManager* caller_mgr
|
|||
linphone_core_accept_call_with_params(callee_mgr->lc,linphone_core_get_current_call(callee_mgr->lc),callee_params);
|
||||
}else if (build_callee_params){
|
||||
LinphoneCallParams *default_params=linphone_core_create_call_params(callee_mgr->lc,linphone_core_get_current_call(callee_mgr->lc));
|
||||
ms_error("Created default call params with video=%i", linphone_call_params_video_enabled(default_params));
|
||||
ms_message("Created default call params with video=%i", linphone_call_params_video_enabled(default_params));
|
||||
linphone_core_accept_call_with_params(callee_mgr->lc,linphone_core_get_current_call(callee_mgr->lc),default_params);
|
||||
linphone_call_params_destroy(default_params);
|
||||
}else{
|
||||
|
|
@ -3728,7 +3728,7 @@ static void video_call_with_re_invite_inactive_followed_by_re_invite_base(bool_t
|
|||
CU_ASSERT_TRUE(wait_for(marie->lc,pauline->lc,&pauline->stat.number_of_LinphoneCallPausedByRemote,1));
|
||||
|
||||
check_media_direction(marie,linphone_core_get_current_call(marie->lc),lcs,LinphoneMediaDirectionInactive,LinphoneMediaDirectionInactive);
|
||||
check_media_direction(pauline,linphone_core_get_current_call(pauline->lc), lcs, LinphoneMediaDirectionInactive,LinphoneMediaDirectionInactive);
|
||||
check_media_direction(pauline,linphone_core_get_current_call(pauline->lc), lcs, LinphoneMediaDirectionInactive, LinphoneMediaDirectionInactive);
|
||||
|
||||
if (no_sdp) {
|
||||
linphone_core_enable_sdp_200_ack(marie->lc,TRUE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue