Commit b0c87802 authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

linphonecore.c: fix linphone_core_mic_enabled which returned opposite value in conference mode

parent 73a37d42
......@@ -971,7 +971,7 @@ int linphone_conference_leave(LinphoneConference *obj) {
}
bool_t linphone_conference_is_in(const LinphoneConference *obj) {
return ((Conference *)obj)->isIn() ? TRUE : FALSE;
return ((Conference *)obj)->isIn();
}
AudioStream *linphone_conference_get_audio_stream(const LinphoneConference *obj) {
......
......@@ -4921,7 +4921,7 @@ void linphone_core_enable_mic(LinphoneCore *lc, bool_t enable) {
bool_t linphone_core_mic_enabled(LinphoneCore *lc) {
LinphoneCall *call=linphone_core_get_current_call(lc);
if (linphone_core_is_in_conference(lc)){
return linphone_conference_microphone_is_muted(lc->conf_ctx);
return !linphone_conference_microphone_is_muted(lc->conf_ctx);
}else if (call==NULL){
ms_warning("%s(): No current call!", __FUNCTION__);
return TRUE;
......
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