From 963f29b2807ab6e6fda6c246112416d981ab271f Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 11 Jan 2018 16:58:33 +0100 Subject: [PATCH] Fix linphonecore initialization. --- coreapi/linphonecore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 4bc1769d4..2708a3c62 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -2232,6 +2232,9 @@ static void linphone_core_init(LinphoneCore * lc, LinphoneCoreCbs *cbs, LpConfig lc->ringstream_autorelease=TRUE; // We need the Sal on the Android platform helper init + msplugins_dir = linphone_factory_get_msplugins_dir(lfactory); + image_resources_dir = linphone_factory_get_image_resources_dir(lfactory); + lc->factory = ms_factory_new_with_voip_and_directories(msplugins_dir, image_resources_dir); lc->sal=new Sal(lc->factory); lc->sal->set_http_proxy_host(linphone_core_get_http_proxy_host(lc)); lc->sal->set_http_proxy_port(linphone_core_get_http_proxy_port(lc)); @@ -2265,9 +2268,6 @@ static void linphone_core_init(LinphoneCore * lc, LinphoneCoreCbs *cbs, LpConfig linphone_core_activate_log_serialization_if_needed(); - msplugins_dir = linphone_factory_get_msplugins_dir(lfactory); - image_resources_dir = linphone_factory_get_image_resources_dir(lfactory); - lc->factory = ms_factory_new_with_voip_and_directories(msplugins_dir, image_resources_dir); linphone_core_register_default_codecs(lc); linphone_core_register_offer_answer_providers(lc); /* Get the mediastreamer2 event queue */