Commit fecdf406 authored by Simon Morlat's avatar Simon Morlat

Fix soundcard usage optimization for iOS: after a conference call the...

Fix soundcard usage optimization for iOS: after a conference call the AudioUnit wasn't released, which was causing next call to have no audio.
parent 8b149824
......@@ -664,8 +664,10 @@ void LocalConference::onCallTerminating(LinphoneCall *call) {
convertConferenceToCall();
}
if (remote_count==0){
if (m_localParticipantStream)
if (m_localParticipantStream){
removeLocalEndpoint();
linphone_core_soundcard_hint_check(m_core);
}
if (m_recordEndpoint){
ms_audio_conference_remove_member(m_conf, m_recordEndpoint);
ms_audio_endpoint_destroy(m_recordEndpoint);
......
......@@ -6342,6 +6342,8 @@ void linphone_core_soundcard_hint_check( LinphoneCore* lc){
bool_t use_rtp_io = lp_config_get_int(lc->config, "sound", "rtp_io", FALSE);
bool_t use_rtp_io_enable_local_output = lp_config_get_int(lc->config, "sound", "rtp_io_enable_local_output", FALSE);
if (lc->conf_ctx && linphone_conference_get_size(lc->conf_ctx) >= 1) return;
/* check if the remaining calls are paused */
while( the_calls ){
call = reinterpret_cast<LinphoneCall *>(the_calls->data);
......
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