mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 06:08:07 +00:00
fix crash
This commit is contained in:
parent
f3949dc262
commit
a0e71781e4
1 changed files with 1 additions and 1 deletions
|
|
@ -2483,7 +2483,7 @@ static int comp_call_state_paused(const LinphoneCall *call, const void *param) {
|
|||
|
||||
bool allow = true;
|
||||
AVAudioSessionRouteDescription *newRoute = [AVAudioSession sharedInstance].currentRoute;
|
||||
if (newRoute) {
|
||||
if (newRoute && newRoute.outputs.count > 0) {
|
||||
NSString *route = newRoute.outputs[0].portType;
|
||||
allow = !([route isEqualToString:AVAudioSessionPortLineOut] ||
|
||||
[route isEqualToString:AVAudioSessionPortHeadphones] ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue