mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
reset bandwidth controller between state and upon network changes
This commit is contained in:
parent
91922bcaab
commit
784f2bb8ef
2 changed files with 6 additions and 0 deletions
|
|
@ -1721,6 +1721,9 @@ static void linphone_call_set_terminated(LinphoneCall *call){
|
|||
if (call->chat_room){
|
||||
call->chat_room->call = NULL;
|
||||
}
|
||||
if (lc->calls == NULL){
|
||||
ms_bandwidth_controller_reset_state(lc->bw_controller);
|
||||
}
|
||||
}
|
||||
|
||||
/*function to be called at each incoming reINVITE, in order to adjust various local parameters to what is being offered by remote:
|
||||
|
|
|
|||
|
|
@ -6218,6 +6218,9 @@ static void set_media_network_reachable(LinphoneCore* lc, bool_t is_media_reacha
|
|||
bctbx_list_for_each(lc->calls, (MSIterateFunc)linphone_call_refresh_sockets);
|
||||
}
|
||||
linphone_core_repair_calls(lc);
|
||||
if (lc->bw_controller){
|
||||
ms_bandwidth_controller_reset_state(lc->bw_controller);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue