mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
fix(Core): init cpp before before start
This commit is contained in:
parent
cf7aaf8b6c
commit
33c9f56f15
1 changed files with 4 additions and 3 deletions
|
|
@ -2019,6 +2019,10 @@ static void linphone_core_start(LinphoneCore * lc) {
|
|||
#endif
|
||||
|
||||
lc->auto_net_state_mon=lc->sip_conf.auto_net_state_mon;
|
||||
|
||||
new(&lc->cppCore) std::shared_ptr<Core>();
|
||||
lc->cppCore = Core::create(lc);
|
||||
|
||||
linphone_core_set_state(lc,LinphoneGlobalOn,"Ready");
|
||||
}
|
||||
|
||||
|
|
@ -2277,9 +2281,6 @@ static void linphone_core_init(LinphoneCore * lc, LinphoneCoreCbs *cbs, LpConfig
|
|||
lc->sal->set_user_pointer(lc);
|
||||
lc->sal->set_callbacks(&linphone_sal_callbacks);
|
||||
|
||||
new(&lc->cppCore) std::shared_ptr<Core>();
|
||||
lc->cppCore = Core::create(lc);
|
||||
|
||||
#ifdef TUNNEL_ENABLED
|
||||
lc->tunnel=linphone_core_tunnel_new(lc);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue