diff --git a/coreapi/vtables.c b/coreapi/vtables.c index b01a91f08..3611d290a 100644 --- a/coreapi/vtables.c +++ b/coreapi/vtables.c @@ -38,6 +38,9 @@ void linphone_core_v_table_destroy(LinphoneCoreVTable* table) { } LinphoneCoreVTable *linphone_core_get_current_vtable(LinphoneCore *lc) { + if (lc->current_vtable == NULL && ms_list_size(lc->vtable_refs) > 0) { + return (LinphoneCoreVTable *)ms_list_nth_data(lc->vtable_refs, 0); + } return lc->current_vtable; }