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

RtpStreamSend: clear RTP buffer after resetting

上级 586832a5
...@@ -48,7 +48,7 @@ namespace RTC ...@@ -48,7 +48,7 @@ namespace RTC
{ {
if (!this->probation) if (!this->probation)
{ {
MS_WARN_TAG(rtp, "invalid packet [seq:%" PRIu16 "]", packet->GetSequenceNumber()); MS_WARN_TAG(rtp, "invalid packet [ssrc:%" PRIu32 ", seq:%" PRIu16 "]", packet->GetSsrc(), packet->GetSequenceNumber());
} }
return false; return false;
......
...@@ -24,7 +24,7 @@ namespace RTC ...@@ -24,7 +24,7 @@ namespace RTC
{ {
MS_TRACE(); MS_TRACE();
// Clear buffer. // Clear the RTP buffer.
ClearBuffer(); ClearBuffer();
} }
...@@ -305,7 +305,7 @@ namespace RTC ...@@ -305,7 +305,7 @@ namespace RTC
// NOTE: This should never happen. // NOTE: This should never happen.
if (buffer_it_r == this->buffer.rend()) if (buffer_it_r == this->buffer.rend())
{ {
MS_WARN_TAG(rtp, "packet is older than anything in the buffer, ignoring it"); MS_WARN_TAG(rtp, "ignoring packet older than anything in the buffer [ssrc:%" PRIu32 ", seq:%" PRIu16 "]", packet->GetSsrc(), packet->GetSequenceNumber());
return; return;
} }
...@@ -335,6 +335,7 @@ namespace RTC ...@@ -335,6 +335,7 @@ namespace RTC
void RtpStreamSend::onInitSeq() void RtpStreamSend::onInitSeq()
{ {
// Do nothing. // Clear the RTP buffer.
ClearBuffer();
} }
} }
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论