mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 17:29:20 +00:00
fix crash when try muting unexisting audio stream
This commit is contained in:
parent
b4e51b12da
commit
7097f17143
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue