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

Consumer: Stop probation if probing profile is the new effective profile

上级 07123b29
...@@ -318,8 +318,7 @@ namespace RTC ...@@ -318,8 +318,7 @@ namespace RTC
// Reset the RTP monitor so this probation doesn't affect the current profile. // Reset the RTP monitor so this probation doesn't affect the current profile.
this->rtpMonitor->Reset(); this->rtpMonitor->Reset();
} }
else if (this->effectiveProfile == profile)
if (this->effectiveProfile == profile)
{ {
SetEffectiveProfile(RtpEncodingParameters::Profile::NONE); SetEffectiveProfile(RtpEncodingParameters::Profile::NONE);
} }
...@@ -460,6 +459,10 @@ namespace RTC ...@@ -460,6 +459,10 @@ namespace RTC
// sending useless retransmissions (now that we are sending a newer key // sending useless retransmissions (now that we are sending a newer key
// frame). // frame).
this->rtpStream->ClearRetransmissionBuffer(); this->rtpStream->ClearRetransmissionBuffer();
// Stop probation if probing profile is the new effective profile.
if (IsProbing() && this->probingProfile == this->effectiveProfile)
StopProbation();
} }
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论