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

Code cleanup

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