Fix incoming calls for android (no sound because stream type was set to ring)

This commit is contained in:
Simon Morlat 2017-12-24 22:47:58 +01:00
parent 53750c5a08
commit 3b69788398

View file

@ -2698,7 +2698,6 @@ void linphone_call_init_audio_stream(LinphoneCall *call){
char* cname;
if (call->audiostream != NULL) return;
ms_snd_card_set_stream_type(lc->sound_conf.play_sndcard, MS_SND_CARD_STREAM_VOICE);
if (call->sessions[call->main_audio_stream_index].rtp_session==NULL){
SalMulticastRole multicast_role = linphone_call_get_multicast_role(call,SalAudio);
@ -3564,6 +3563,9 @@ static void linphone_call_start_audio_stream(LinphoneCall *call, LinphoneCallSta
}
}
if (playcard){
ms_snd_card_set_stream_type(playcard, MS_SND_CARD_STREAM_VOICE);
}
if (ok == TRUE) {
int err = audio_stream_start_from_io(call->audiostream,
call->audio_profile,