Commit 8a2a00f2 authored by Pierre Lespagnol's avatar Pierre Lespagnol Committed by Adrien Béraud

socket_pair: avoid unknown packet type messages for Sender Reports

Change-Id: I6e730fb2245fe88a84255f8ffc06449f866f4918
parent 2469eae4
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment