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