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

RtpStreamSend: only log data loss when necessary

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