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

Cosmetic

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