From ff6adcb5e65f300392c16a2cb13e0837f19bdd36 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Thu, 22 Feb 2018 11:04:12 +0100 Subject: [PATCH] do not put speaker when starting video call if BTheadest --- Classes/LinphoneManager.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index d93bbffe3..84e4bb458 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -958,8 +958,7 @@ static void linphone_iphone_display_status(struct _LinphoneCore *lc, const char // Enable speaker when video if (state == LinphoneCallIncomingReceived || state == LinphoneCallOutgoingInit || state == LinphoneCallConnected || state == LinphoneCallStreamsRunning) { - if (linphone_call_params_video_enabled( linphone_call_get_current_params(call)) && - !speaker_already_enabled) { + if (linphone_call_params_video_enabled( linphone_call_get_current_params(call)) && !speaker_already_enabled && !_bluetoothEnabled) { [self setSpeakerEnabled:TRUE]; speaker_already_enabled = TRUE; }