提交 a961e11e authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Working on #160

上级 d42d6f1f
...@@ -328,6 +328,10 @@ namespace RTC ...@@ -328,6 +328,10 @@ namespace RTC
// Target profile removed. Recalculate. // Target profile removed. Recalculate.
else if (this->targetProfile == profile) else if (this->targetProfile == profile)
{ {
// It may also be the effective profile, so set it to none.
if (this->effectiveProfile == profile)
SetEffectiveProfile(RtpEncodingParameters::Profile::NONE);
RecalculateTargetProfile(); RecalculateTargetProfile();
} }
// There is an ongoing probation for this profile, disable it. // There is an ongoing probation for this profile, disable it.
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论