提交 bdba22a1 authored 作者: José Luis Millán's avatar José Luis Millán

gulp format

上级 34d6ea8f
...@@ -43,7 +43,7 @@ namespace RTC ...@@ -43,7 +43,7 @@ namespace RTC
if (!this->started) if (!this->started)
{ {
this->lastSeq = seq; this->lastSeq = seq;
this->started = true; this->started = true;
return false; return false;
} }
...@@ -87,8 +87,7 @@ namespace RTC ...@@ -87,8 +87,7 @@ namespace RTC
// Out of order packet or already handled NACKed packet. // Out of order packet or already handled NACKed packet.
MS_DEBUG_TAG( MS_DEBUG_TAG(
rtx, rtx,
"ignoring old packet not present in the NACK list [ssrc:%" PRIu32 "ignoring old packet not present in the NACK list [ssrc:%" PRIu32 ", seq:%" PRIu16 "]",
", seq:%" PRIu16 "]",
packet->GetSsrc(), packet->GetSsrc(),
packet->GetSequenceNumber()); packet->GetSequenceNumber());
...@@ -159,8 +158,7 @@ namespace RTC ...@@ -159,8 +158,7 @@ namespace RTC
uint16_t sendAtSeq = seq + 0; uint16_t sendAtSeq = seq + 0;
NackInfo nackInfo(seq, sendAtSeq); NackInfo nackInfo(seq, sendAtSeq);
MS_ASSERT( MS_ASSERT(this->nackList.find(seq) == this->nackList.end(), "packet already in the NACK list");
this->nackList.find(seq) == this->nackList.end(), "packet already in the NACK list");
this->nackList[seq] = nackInfo; this->nackList[seq] = nackInfo;
} }
...@@ -172,7 +170,7 @@ namespace RTC ...@@ -172,7 +170,7 @@ namespace RTC
{ {
MS_TRACE(); MS_TRACE();
uint16_t seq = packet->GetSequenceNumber(); uint16_t seq = packet->GetSequenceNumber();
uint32_t numItemsBefore = this->nackList.size(); uint32_t numItemsBefore = this->nackList.size();
auto it = this->nackList.lower_bound(seq); auto it = this->nackList.lower_bound(seq);
...@@ -204,8 +202,9 @@ namespace RTC ...@@ -204,8 +202,9 @@ namespace RTC
NackInfo& nackInfo = it->second; NackInfo& nackInfo = it->second;
uint16_t seq = nackInfo.seq; uint16_t seq = nackInfo.seq;
if (filter == NackFilter::SEQ && nackInfo.sentAtTime == 0 && if (
SeqManager<uint16_t>::IsSeqHigherThan(this->lastSeq, nackInfo.sendAtSeq)) filter == NackFilter::SEQ && nackInfo.sentAtTime == 0 &&
SeqManager<uint16_t>::IsSeqHigherThan(this->lastSeq, nackInfo.sendAtSeq))
{ {
nackInfo.retries++; nackInfo.retries++;
nackInfo.sentAtTime = now; nackInfo.sentAtTime = now;
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论