forked from mirrors/linphone-iphone
fix crash when calls
This commit is contained in:
parent
7b37d061c8
commit
af655e4c3f
1 changed files with 1 additions and 1 deletions
|
|
@ -2506,7 +2506,7 @@ static int comp_call_state_paused(const LinphoneCall *call, const void *param) {
|
|||
|
||||
AVAudioSessionRouteDescription *newRoute = [AVAudioSession sharedInstance].currentRoute;
|
||||
|
||||
if (newRoute) {
|
||||
if (newRoute && newRoute.outputs.count > 0) {
|
||||
NSString *route = newRoute.outputs[0].portType;
|
||||
LOGI(@"Current audio route is [%s]", [route UTF8String]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue