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

Code cleanup

上级 e549e5bc
......@@ -42,13 +42,9 @@ namespace RTC
auto it = this->ssrcTable.find(ssrc);
if (it == this->ssrcTable.end())
{
return false;
}
else
{
return (it->second != producer);
}
}
inline bool RtpListener::HasMuxId(const std::string& muxId, const RTC::Producer* producer) const
......@@ -56,13 +52,9 @@ namespace RTC
auto it = this->muxIdTable.find(muxId);
if (it == this->muxIdTable.end())
{
return false;
}
else
{
return (it->second != producer);
}
}
} // namespace RTC
......
......@@ -72,6 +72,7 @@ namespace RTC
if (existingProducer == producer)
{
previousMuxId = muxId;
break;
}
}
......@@ -236,9 +237,7 @@ namespace RTC
auto it = this->ssrcTable.find(ssrc);
if (it != this->ssrcTable.end())
{
return it->second;
}
return nullptr;
}
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论