do not put speaker when starting video call if BTheadest

This commit is contained in:
Benjamin Reis 2018-02-22 11:04:12 +01:00
parent da33a8d098
commit 8abc47953d

View file

@ -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;
}