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

This commit is contained in:
Gautier Pelloux-Prayer 2016-02-18 15:57:18 +01:00
parent 73a37d4242
commit b0c8780281
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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;