Commit c0e20665 authored by Simon Morlat's avatar Simon Morlat

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

parent 20efb4ad
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment