提交 81bed715 authored 作者: José Luis Millán's avatar José Luis Millán

RtpStreamSend: only log data loss when necessary

上级 b5444c0b
...@@ -404,12 +404,12 @@ namespace RTC ...@@ -404,12 +404,12 @@ namespace RTC
auto lossPercentage = GetLossPercentage(); auto lossPercentage = GetLossPercentage();
if (lossPercentage >= MaxHealthLossPercentage) if (lossPercentage >= MaxHealthLossPercentage)
{
if (this->notifyStatus || this->healthy)
{ {
MS_DEBUG_TAG( MS_DEBUG_TAG(
rtp, "rtp stream packet loss [ssrc:%" PRIu32 ", %.2f%%]", GetSsrc(), lossPercentage); rtp, "rtp stream packet loss [ssrc:%" PRIu32 ", %.2f%%]", GetSsrc(), lossPercentage);
if (this->notifyStatus || this->healthy)
{
this->healthy = false; this->healthy = false;
this->listener->OnRtpStreamUnhealthy(this); this->listener->OnRtpStreamUnhealthy(this);
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论