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

Minimal improvement in RTP retransmission.

上级 b32df932
...@@ -268,8 +268,8 @@ namespace RTC ...@@ -268,8 +268,8 @@ namespace RTC
case RTC::Media::Kind::VIDEO: case RTC::Media::Kind::VIDEO:
case RTC::Media::Kind::DEPTH: case RTC::Media::Kind::DEPTH:
{ {
// Buffer up to 200 packets. // Buffer up to 100 packets.
this->rtpStream = new RTC::RtpStreamSend(streamClockRate, 200); this->rtpStream = new RTC::RtpStreamSend(streamClockRate, 100);
break; break;
} }
...@@ -316,7 +316,7 @@ namespace RTC ...@@ -316,7 +316,7 @@ namespace RTC
// RTP parameters. // RTP parameters.
if (packet->GetSsrc() != this->rtpParameters->encodings[0].ssrc) if (packet->GetSsrc() != this->rtpParameters->encodings[0].ssrc)
{ {
MS_DEBUG_TAG(rtp, "ignoring packet with unknown SSRC [ssrc:%" PRIu32 "]", packet->GetSsrc()); MS_WARN_TAG(rtp, "ignoring packet with unknown SSRC [ssrc:%" PRIu32 "]", packet->GetSsrc());
return; return;
} }
......
...@@ -131,7 +131,11 @@ namespace RTC ...@@ -131,7 +131,11 @@ namespace RTC
// Try again. // Try again.
if (first_seq32 > buffer_last_seq32 || last_seq32 < buffer_first_seq32) if (first_seq32 > buffer_last_seq32 || last_seq32 < buffer_first_seq32)
{
MS_DEBUG_DEV("requested packet range not in the buffer");
return; return;
}
} }
// Otherwise just return. // Otherwise just return.
else else
...@@ -194,6 +198,12 @@ namespace RTC ...@@ -194,6 +198,12 @@ namespace RTC
// Exit the loop. // Exit the loop.
break; break;
} }
// It can not be after this packet.
else if (current_seq32 > seq32)
{
// Exit the loop.
break;
}
} }
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论