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

s/MaxRetransmissionAge/MaxRetransmissionDelay/g

上级 ad8fc279
...@@ -12,7 +12,7 @@ namespace RTC ...@@ -12,7 +12,7 @@ namespace RTC
static constexpr uint32_t RtpSeqMod{ 1 << 16 }; static constexpr uint32_t RtpSeqMod{ 1 << 16 };
// Don't retransmit packets older than this (ms). // Don't retransmit packets older than this (ms).
static constexpr uint32_t MaxRetransmissionAge{ 1000 }; static constexpr uint32_t MaxRetransmissionDelay{ 5000 };
static constexpr uint32_t DefaultRtt{ 100 }; static constexpr uint32_t DefaultRtt{ 100 };
/* Instance methods. */ /* Instance methods. */
...@@ -185,8 +185,8 @@ namespace RTC ...@@ -185,8 +185,8 @@ namespace RTC
uint32_t diff = uint32_t diff =
(this->maxTimestamp - currentPacket->GetTimestamp()) * 1000 / this->params.clockRate; (this->maxTimestamp - currentPacket->GetTimestamp()) * 1000 / this->params.clockRate;
// Just provide the packet if no older than MaxRetransmissionAge ms. // Just provide the packet if no older than MaxRetransmissionDelay ms.
if (diff > MaxRetransmissionAge) if (diff > MaxRetransmissionDelay)
{ {
if (!tooOldPacketFound) if (!tooOldPacketFound)
{ {
...@@ -195,7 +195,7 @@ namespace RTC ...@@ -195,7 +195,7 @@ namespace RTC
"ignoring retransmission for too old packet " "ignoring retransmission for too old packet "
"[seq:%" PRIu16 ", max age:%" PRIu32 "ms, packet age:%" PRIu32 "ms]", "[seq:%" PRIu16 ", max age:%" PRIu32 "ms, packet age:%" PRIu32 "ms]",
currentPacket->GetSequenceNumber(), currentPacket->GetSequenceNumber(),
MaxRetransmissionAge, MaxRetransmissionDelay,
diff); diff);
tooOldPacketFound = true; tooOldPacketFound = true;
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论