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

Set effective profile to 'none' when there is no profile

上级 a1d9bb95
......@@ -649,6 +649,8 @@ namespace RTC
// is single stream or simulcast/SVC.
if (this->profiles.empty())
{
this->effectiveProfile = RtpEncodingParameters::Profile::NONE;
if (this->effectiveProfile != RtpEncodingParameters::Profile::DEFAULT)
newProfile = RtpEncodingParameters::Profile::NONE;
else
......@@ -681,6 +683,9 @@ namespace RTC
this->targetProfile = newProfile;
if (IsEnabled() && !IsPaused())
RequestFullFrame();
if (this->targetProfile == this->effectiveProfile)
return;
......@@ -688,9 +693,6 @@ namespace RTC
rtp,
"target profile set [profile:%s]",
RTC::RtpEncodingParameters::profile2String[this->targetProfile].c_str());
if (IsEnabled() && !IsPaused())
RequestFullFrame();
}
void Consumer::SetEffectiveProfile(RTC::RtpEncodingParameters::Profile profile)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论