提交 a0edf695 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Cosmetic

上级 9d00608b
...@@ -23,10 +23,10 @@ namespace RTC ...@@ -23,10 +23,10 @@ namespace RTC
struct NackInfo struct NackInfo
{ {
NackInfo(){}; NackInfo(){};
explicit NackInfo(uint32_t seq32, uint32_t sendAtSeqNum); explicit NackInfo(uint32_t seq32, uint32_t sendAtSeq32);
uint32_t seq32{ 0 }; uint32_t seq32{ 0 };
uint32_t sendAtSeqNum{ 0 }; uint32_t sendAtSeq32{ 0 };
uint64_t sentAtTime{ 0 }; uint64_t sentAtTime{ 0 };
uint8_t retries{ 0 }; uint8_t retries{ 0 };
}; };
...@@ -67,8 +67,8 @@ namespace RTC ...@@ -67,8 +67,8 @@ namespace RTC
// Inline instance methods. // Inline instance methods.
inline NackGenerator::NackInfo::NackInfo(uint32_t seq32, uint32_t sendAtSeqNum) inline NackGenerator::NackInfo::NackInfo(uint32_t seq32, uint32_t sendAtSeq32)
: seq32(seq32), sendAtSeqNum(sendAtSeqNum) : seq32(seq32), sendAtSeq32(sendAtSeq32)
{ {
} }
} // namespace RTC } // namespace RTC
......
...@@ -134,9 +134,8 @@ namespace RTC ...@@ -134,9 +134,8 @@ namespace RTC
// NOTE: Let the packet become out of order for a while without requesting // NOTE: Let the packet become out of order for a while without requesting
// it into a NACK. // it into a NACK.
// TODO: To be done. // TODO: To be done.
uint32_t sendAtSeqNum = seq32 + 0; uint32_t sendAtSeq32 = seq32 + 0;
NackInfo nackInfo(seq32, sendAtSeq32);
NackInfo nackInfo(seq32, sendAtSeqNum);
MS_ASSERT( MS_ASSERT(
this->nackList.find(seq32) == this->nackList.end(), "packet already in the NACK list"); this->nackList.find(seq32) == this->nackList.end(), "packet already in the NACK list");
...@@ -183,7 +182,7 @@ namespace RTC ...@@ -183,7 +182,7 @@ namespace RTC
NackInfo& nackInfo = it->second; NackInfo& nackInfo = it->second;
uint16_t seq = nackInfo.seq32 % (1 << 16); uint16_t seq = nackInfo.seq32 % (1 << 16);
if (filter == NackFilter::SEQ && nackInfo.sentAtTime == 0 && this->lastSeq32 >= nackInfo.sendAtSeqNum) if (filter == NackFilter::SEQ && nackInfo.sentAtTime == 0 && this->lastSeq32 >= nackInfo.sendAtSeq32)
{ {
nackInfo.retries++; nackInfo.retries++;
nackInfo.sentAtTime = now; nackInfo.sentAtTime = now;
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论