linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] segfault in linphone_core_mute_mic


From: Christian Spielberger
Subject: [Linphone-developers] segfault in linphone_core_mute_mic
Date: Tue, 10 Nov 2015 11:33:24 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Hi,

had a segfault during testing with early media. I suggest:

diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c
index 150f475..5fdfe84 100644
--- a/coreapi/linphonecore.c
+++ b/coreapi/linphonecore.c
@@ -4909,7 +4909,8 @@ void linphone_core_mute_mic(LinphoneCore *lc, bool_t val){
        for (elem = list; elem != NULL; elem = elem->next) {
                call = (LinphoneCall *)elem->data;
                call->audio_muted = val;
-               linphone_core_mute_audio_stream(lc, call->audiostream, val);
+               if (call->audiostream)
+                       linphone_core_mute_audio_stream(lc, call->audiostream, 
val);
        }
 }


Regards,
Christian.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]