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

Worker Fix. Remove wrong assert on Producer::DeactivateStreamProfiles()

Stream profiles may very well be already deactivated.
上级 04b4a02d
...@@ -673,13 +673,11 @@ namespace RTC ...@@ -673,13 +673,11 @@ namespace RTC
{ {
auto& profiles = this->mapRtpStreamProfiles[rtpStream]; auto& profiles = this->mapRtpStreamProfiles[rtpStream];
// Notify about the profiles being disabled. // Notify about the active profiles being disabled.
for (auto& profile : profiles) for (auto& profile : profiles)
{ {
MS_ASSERT( if (this->mapActiveProfiles.find(profile) != this->mapActiveProfiles.end())
this->mapActiveProfiles.find(profile) != this->mapActiveProfiles.end(), {
"profile not in active profiles map");
// Remove the profile from the active profiles map. // Remove the profile from the active profiles map.
this->mapActiveProfiles.erase(profile); this->mapActiveProfiles.erase(profile);
...@@ -689,6 +687,7 @@ namespace RTC ...@@ -689,6 +687,7 @@ namespace RTC
} }
} }
} }
}
bool Producer::IsStreamActive(const RTC::RtpStream* rtpStream) const bool Producer::IsStreamActive(const RTC::RtpStream* rtpStream) const
{ {
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论