From 7097f171433337095d1e192aa8f458c9cb03da5a Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Mon, 26 Sep 2016 10:08:02 +0200 Subject: [PATCH] fix crash when try muting unexisting audio stream --- coreapi/linphonecore.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index acdae7b48..021659490 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -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); } }