From f426902ebe60f1467eb72c12d5aa493087eaf09d Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Mon, 6 Jun 2016 11:56:55 +0200 Subject: [PATCH] Fixed Sqlite VFS for Android --- coreapi/linphonecore.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index b1bd4d612..fc29dc920 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -1823,13 +1823,14 @@ static void linphone_core_init(LinphoneCore * lc, const LinphoneCoreVTable *vtab lc->ringtoneplayer = linphone_ringtoneplayer_new(); +#ifdef SQLITE_STORAGE_ENABLED + sqlite3_bctbx_vfs_register(0); +#endif + remote_provisioning_uri = linphone_core_get_provisioning_uri(lc); if (remote_provisioning_uri == NULL) { linphone_configuring_terminated(lc, LinphoneConfiguringSkipped, NULL); } // else linphone_core_start will be called after the remote provisioning (see linphone_core_iterate) -#ifdef SQLITE_STORAGE_ENABLED - sqlite3_bctbx_vfs_register(0); -#endif } LinphoneCore *linphone_core_new(const LinphoneCoreVTable *vtable,