fix crash when try muting unexisting audio stream

This commit is contained in:
Jehan Monnier 2016-09-26 10:08:02 +02:00
parent b4e51b12da
commit 7097f17143

View file

@ -5105,7 +5105,8 @@ void linphone_core_enable_mic(LinphoneCore *lc, bool_t enable) {
for (elem = list; elem != NULL; elem = elem->next) {
call = (LinphoneCall *)elem->data;
call->audio_muted = !enable;
linphone_core_mute_audio_stream(lc, call->audiostream, !enable);
if (call->audiostream)
linphone_core_mute_audio_stream(lc, call->audiostream, enable);
}
}