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

Consumer: recalculate target profile on RTP healthy...

if the target profile is lower than the preferrred one.
上级 c8b8d25a
...@@ -749,9 +749,8 @@ namespace RTC ...@@ -749,9 +749,8 @@ namespace RTC
{ {
MS_TRACE(); MS_TRACE();
if (!this->isProbing) if (this->isProbing)
return; {
MS_DEBUG_TAG( MS_DEBUG_TAG(
rtp, rtp,
"successful probation [ssrc:%" PRIu32 ", profile:%s]", "successful probation [ssrc:%" PRIu32 ", profile:%s]",
...@@ -775,6 +774,12 @@ namespace RTC ...@@ -775,6 +774,12 @@ namespace RTC
RTC::RtpEncodingParameters::profile2String[this->targetProfile].c_str()); RTC::RtpEncodingParameters::profile2String[this->targetProfile].c_str());
} }
else if (this->targetProfile < this->preferredProfile)
{
RecalculateTargetProfile();
}
}
void Consumer::OnRtpMonitorUnhealthy() void Consumer::OnRtpMonitorUnhealthy()
{ {
MS_TRACE(); MS_TRACE();
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论