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

Do not store the same packet twice

上级 449859ee
......@@ -350,10 +350,15 @@ namespace RTC
newBufferIt = this->buffer.insert(it, bufferItem);
// Exit the loop.
break;
}
// Packet is already stored.
else if (packetSeq == currentSeq)
{
return;
}
}
// If the packet was older than anything in the buffer, just ignore it.
// NOTE: This should never happen.
if (bufferItReverse == this->buffer.rend())
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论