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

remove unnecessary check

上级 5c032c75
...@@ -226,11 +226,6 @@ namespace RTC ...@@ -226,11 +226,6 @@ namespace RTC
void Consumer::AddProfile(const RTC::RtpEncodingParameters::Profile profile) void Consumer::AddProfile(const RTC::RtpEncodingParameters::Profile profile)
{ {
// If this is the first enabled profile, remove the NONE entry from the set.
if (this->profiles.size() == 1 &&
(*(this->profiles.begin()) == RTC::RtpEncodingParameters::Profile::NONE))
this->profiles.clear();
// Insert profile. // Insert profile.
this->profiles.insert(profile); this->profiles.insert(profile);
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论