From 8a2a00f2a3a087d8a658394b5b56ad53a4d0155c Mon Sep 17 00:00:00 2001
From: Pierre Lespagnol <pierre.lespagnol@savoirfairelinux.com>
Date: Thu, 28 Nov 2019 10:22:07 -0500
Subject: [PATCH] socket_pair: avoid unknown packet type messages for Sender
 Reports

Change-Id: I6e730fb2245fe88a84255f8ffc06449f866f4918
---
 src/media/socket_pair.cpp | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/media/socket_pair.cpp b/src/media/socket_pair.cpp
index ad0a3d902e..9d93a2c69f 100644
--- a/src/media/socket_pair.cpp
+++ b/src/media/socket_pair.cpp
@@ -468,15 +468,20 @@ SocketPair::readCallback(uint8_t* buf, int buf_size)
         len = readRtcpData(buf, buf_size);
         if (len > 0) {
             auto header = reinterpret_cast<rtcpRRHeader*>(buf);
-            if(header->pt == 201) //201 = RR PT
-            {
+            // 201 = RR PT
+            if (header->pt == 201) {
                 lastDLSR_ = Swap4Bytes(header->dlsr);
                 //JAMI_WARN("Read RR, lastDLSR : %d", lastDLSR_);
                 lastRR_time = std::chrono::steady_clock::now();
                 saveRtcpRRPacket(buf, len);
             }
-            else if(header->pt == 206) //206 = REMB PT
+            // 206 = REMB PT
+            else if (header->pt == 206)
                 saveRtcpREMBPacket(buf, len);
+            // 200 = SR PT
+            else if (header->pt == 200) {
+                // not used yet
+            }
             else {
                 JAMI_DBG("Can't read RTCP: unknown packet type %u", header->pt);
             }
-- 
GitLab