Commit d671e139 authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

linphonecall.c: dispose sound card only when audio stream has been released to...

linphonecall.c: dispose sound card only when audio stream has been released to avoid crash on iOS where we would dispose sound card before stopping it
parent 9d6584db
......@@ -1360,7 +1360,6 @@ void linphone_call_set_state(LinphoneCall *call, LinphoneCallState cstate, const
if (cstate==LinphoneCallReleased) {/*shall be performed after app notification*/
linphone_call_set_released(call);
}
linphone_core_soundcard_hint_check(lc);
}
}
......@@ -3221,6 +3220,8 @@ void linphone_call_stop_media_streams(LinphoneCall *call){
rtp_profile_destroy(call->rtp_io_video_profile);
call->rtp_io_video_profile = NULL;
}
linphone_core_soundcard_hint_check(call->core);
}
......@@ -4267,13 +4268,13 @@ void linphone_call_set_broken(LinphoneCall *call){
void linphone_call_repair_if_broken(LinphoneCall *call){
LinphoneCallParams *params;
if (!call->broken) return;
/*First, make sure that the proxy from which we received this call, or to which we routed this call is registered*/
if (!call->dest_proxy || linphone_proxy_config_get_state(call->dest_proxy) != LinphoneRegistrationOk) return;
switch (call->state){
case LinphoneCallStreamsRunning:
case LinphoneCallPaused:
......
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