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

Consumer: Fix #157. Do not emit 'effectiveprofilechange' if not enabled

上级 1602f7f7
...@@ -1080,8 +1080,12 @@ namespace RTC ...@@ -1080,8 +1080,12 @@ namespace RTC
"effective profile set [profile:%s]", "effective profile set [profile:%s]",
RTC::RtpEncodingParameters::profile2String[this->effectiveProfile].c_str()); RTC::RtpEncodingParameters::profile2String[this->effectiveProfile].c_str());
if (!IsEnabled())
return;
// Notify. // Notify.
eventData[JsonStringProfile] = RTC::RtpEncodingParameters::profile2String[this->effectiveProfile]; eventData[JsonStringProfile] = RTC::RtpEncodingParameters::profile2String[this->effectiveProfile];
this->notifier->Emit(this->consumerId, "effectiveprofilechange", eventData); this->notifier->Emit(this->consumerId, "effectiveprofilechange", eventData);
} }
} // namespace RTC } // namespace RTC
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论