Commit 5c284e91 authored by François Grisez's avatar François Grisez
Browse files

Fixes unmuted microphone and camera when early-media is leaved and the remote RTP address changes

parent 72cfb8b4
......@@ -154,8 +154,7 @@ void linphone_call_update_streams(LinphoneCall *call, SalMediaDescription *new_m
} else if (call->playing_ringbacktone) {
ms_message("Playing ringback tone, will restart the streams.");
} else {
if (md_changed == SAL_MEDIA_DESCRIPTION_UNCHANGED) {
if (call->all_muted) {
if (call->all_muted && target_state == LinphoneCallStreamsRunning) {
ms_message("Early media finished, unmuting inputs...");
/* We were in early media, now we want to enable real media */
call->all_muted = FALSE;
......@@ -166,6 +165,7 @@ void linphone_call_update_streams(LinphoneCall *call, SalMediaDescription *new_m
}
#endif
}
if (md_changed == SAL_MEDIA_DESCRIPTION_UNCHANGED) {
/*FIXME ZRTP, might be restarted in any cases ? */
ms_message("No need to restart streams, SDP is unchanged.");
goto end;
......
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