Skip to content
Snippets Groups Projects
Commit 8a2a00f2 authored by Pierre Lespagnol's avatar Pierre Lespagnol Committed by Adrien Béraud
Browse files

socket_pair: avoid unknown packet type messages for Sender Reports

Change-Id: I6e730fb2245fe88a84255f8ffc06449f866f4918
parent 2469eae4
Branches
Tags
No related merge requests found
...@@ -468,15 +468,20 @@ SocketPair::readCallback(uint8_t* buf, int buf_size) ...@@ -468,15 +468,20 @@ SocketPair::readCallback(uint8_t* buf, int buf_size)
len = readRtcpData(buf, buf_size); len = readRtcpData(buf, buf_size);
if (len > 0) { if (len > 0) {
auto header = reinterpret_cast<rtcpRRHeader*>(buf); auto header = reinterpret_cast<rtcpRRHeader*>(buf);
if(header->pt == 201) //201 = RR PT // 201 = RR PT
{ if (header->pt == 201) {
lastDLSR_ = Swap4Bytes(header->dlsr); lastDLSR_ = Swap4Bytes(header->dlsr);
//JAMI_WARN("Read RR, lastDLSR : %d", lastDLSR_); //JAMI_WARN("Read RR, lastDLSR : %d", lastDLSR_);
lastRR_time = std::chrono::steady_clock::now(); lastRR_time = std::chrono::steady_clock::now();
saveRtcpRRPacket(buf, len); saveRtcpRRPacket(buf, len);
} }
else if(header->pt == 206) //206 = REMB PT // 206 = REMB PT
else if (header->pt == 206)
saveRtcpREMBPacket(buf, len); saveRtcpREMBPacket(buf, len);
// 200 = SR PT
else if (header->pt == 200) {
// not used yet
}
else { else {
JAMI_DBG("Can't read RTCP: unknown packet type %u", header->pt); JAMI_DBG("Can't read RTCP: unknown packet type %u", header->pt);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment