From 0ca5b4d1bd35450a2f8eb5c686e58a74e48b0fd1 Mon Sep 17 00:00:00 2001
From: Mohamed Chibani <mohamed.chibani@savoirfairelinux.com>
Date: Mon, 17 May 2021 13:51:50 -0400
Subject: [PATCH] sipcall: fix isAudio/isVideoMuted

Gitlab: #445

Change-Id: If1262e4f5ef8f11d6cd95a888b4219425d45614d
---
 src/sip/sipcall.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sip/sipcall.cpp b/src/sip/sipcall.cpp
index 06367b51c8..735ea834a1 100644
--- a/src/sip/sipcall.cpp
+++ b/src/sip/sipcall.cpp
@@ -1583,7 +1583,7 @@ SIPCall::isAudioMuted() const
 
     const auto iter = std::find_if(rtpStreams_.begin(), rtpStreams_.end(), mutedCheck);
 
-    return iter != rtpStreams_.end();
+    return iter == rtpStreams_.end();
 }
 
 bool
@@ -1611,7 +1611,7 @@ SIPCall::isVideoMuted() const
                 and not stream.mediaAttribute_->muted_);
     };
     const auto iter = std::find_if(rtpStreams_.begin(), rtpStreams_.end(), mutedCheck);
-    return iter != rtpStreams_.end();
+    return iter == rtpStreams_.end();
 #else
     return true;
 #endif
-- 
GitLab