forked from mirrors/linphone-iphone
fix crash
This commit is contained in:
parent
061a7799b9
commit
eaae6b72d6
1 changed files with 1 additions and 1 deletions
|
|
@ -2442,7 +2442,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