From 8abc47953d581683fc863f0f8af5f07c376afa2b 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 42a10d6f0..92a8c5b69 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -828,8 +828,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; }