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

NackGenerator: remove unnecessary code block

上级 bdba22a1
...@@ -9,7 +9,6 @@ namespace RTC ...@@ -9,7 +9,6 @@ namespace RTC
{ {
/* Static. */ /* Static. */
constexpr uint32_t MaxPacketAge{ 5000 };
constexpr size_t MaxNackPackets{ 1000 }; constexpr size_t MaxNackPackets{ 1000 };
constexpr uint32_t DefaultRtt{ 100 }; constexpr uint32_t DefaultRtt{ 100 };
constexpr uint8_t MaxNackRetries{ 8 }; constexpr uint8_t MaxNackRetries{ 8 };
...@@ -113,27 +112,6 @@ namespace RTC ...@@ -113,27 +112,6 @@ namespace RTC
{ {
MS_TRACE(); MS_TRACE();
if (seqEnd > MaxPacketAge)
{
uint32_t numItemsBefore = this->nackList.size();
// Remove old packets.
auto it = this->nackList.lower_bound(seqEnd - MaxPacketAge);
this->nackList.erase(this->nackList.begin(), it);
uint32_t numItemsRemoved = numItemsBefore - this->nackList.size();
if (numItemsRemoved > 0)
{
MS_DEBUG_TAG(
rtx,
"removed %" PRIu32 " NACK items due to too old seq number [seqEnd:%" PRIu16 "]",
numItemsRemoved,
seqEnd);
}
}
// If the nack list is too large, clear it and request a key frame. // If the nack list is too large, clear it and request a key frame.
uint16_t numNewNacks = seqEnd - seqStart; uint16_t numNewNacks = seqEnd - seqStart;
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论