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

Store rtp packet even if its older than anything in the buffer

上级 7fff049c
......@@ -359,18 +359,9 @@ namespace RTC
}
}
// If the packet was older than anything in the buffer, just ignore it.
// NOTE: This should never happen.
// The packet was older than anything in the buffer, store it at the beginning.
if (bufferItReverse == this->buffer.rend())
{
MS_WARN_TAG(
rtp,
"ignoring packet older than anything in the buffer [ssrc:%" PRIu32 ", seq:%" PRIu16 "]",
packet->GetSsrc(),
packet->GetSequenceNumber());
return;
}
newBufferIt = this->buffer.insert(this->buffer.begin(), bufferItem);
// If the buffer is not full use the next free storage item.
if (this->buffer.size() - 1 < this->storage.size())
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论