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

Producer: do not fire OnRtpStreamInactivity for unhealthy streams

上级 b9532fcf
...@@ -692,7 +692,7 @@ namespace RTC ...@@ -692,7 +692,7 @@ namespace RTC
{ {
MS_ASSERT( MS_ASSERT(
this->healthyProfiles.find(profile) != this->healthyProfiles.end(), this->healthyProfiles.find(profile) != this->healthyProfiles.end(),
"profile already in headltyProfiles set"); "profile not in headltyProfiles");
// Remove the profile from the healthy profiles set. // Remove the profile from the healthy profiles set.
this->healthyProfiles.erase(profile); this->healthyProfiles.erase(profile);
......
...@@ -231,7 +231,7 @@ namespace RTC ...@@ -231,7 +231,7 @@ namespace RTC
{ {
auto now = DepLibUV::GetTime(); auto now = DepLibUV::GetTime();
if (this->transmissionCounter.GetRate(now) == 0) if (this->transmissionCounter.GetRate(now) == 0 && IsHealthy())
this->listener->OnRtpStreamInactivity(this); this->listener->OnRtpStreamInactivity(this);
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论