mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
If there is no current vtable, return the first one if exists
This commit is contained in:
parent
48510f3000
commit
9d71678c28
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue