mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
linphonecore.c: fix linphone_core_mic_enabled which returned opposite value in conference mode
This commit is contained in:
parent
73a37d4242
commit
b0c8780281
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue