mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Fix video policy when auto-accept video is disabled
This commit is contained in:
parent
6f86da2e8e
commit
845906bd55
1 changed files with 7 additions and 0 deletions
|
|
@ -1624,6 +1624,13 @@ static void audioRouteChangeListenerCallback (
|
|||
}
|
||||
linphone_call_params_enable_low_bandwidth(lcallParams, low_bandwidth);
|
||||
}
|
||||
|
||||
// workaround for video policy not correctly updated for automatic accept
|
||||
BOOL video = linphone_call_params_video_enabled(lcallParams);
|
||||
const LinphoneVideoPolicy* policy = linphone_core_get_video_policy(theLinphoneCore);
|
||||
video &= policy->automatically_accept;
|
||||
linphone_call_params_enable_video(lcallParams, video);
|
||||
|
||||
linphone_core_accept_call_with_params(theLinphoneCore,call, lcallParams);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue