提交 0aeaeb28 authored 作者: José Luis Millán's avatar José Luis Millán

RTC: More cosmetic. Do not use 'this->' for member methods

上级 f178d0fa
......@@ -119,7 +119,7 @@ namespace RTC
if (ssrc != 0u)
{
if (!this->HasSsrc(ssrc, producer))
if (!HasSsrc(ssrc, producer))
{
this->ssrcTable[ssrc] = producer;
}
......@@ -138,7 +138,7 @@ namespace RTC
if (ssrc != 0u)
{
if (!this->HasSsrc(ssrc, producer))
if (!HasSsrc(ssrc, producer))
{
this->ssrcTable[ssrc] = producer;
}
......@@ -157,7 +157,7 @@ namespace RTC
if (ssrc != 0u)
{
if (!this->HasSsrc(ssrc, producer))
if (!HasSsrc(ssrc, producer))
{
this->ssrcTable[ssrc] = producer;
}
......@@ -178,7 +178,7 @@ namespace RTC
{
auto& muxId = rtpParameters.muxId;
if (!this->HasMuxId(muxId, producer))
if (!HasMuxId(muxId, producer))
{
this->muxIdTable[muxId] = producer;
}
......@@ -201,7 +201,7 @@ namespace RTC
if (rid.empty())
continue;
if (!this->HasRid(rid, producer))
if (!HasRid(rid, producer))
{
this->ridTable[rid] = producer;
}
......
......@@ -115,7 +115,7 @@ namespace RTC
score += repairedPercentage * RepairedPercentageWeight;
// Add score to histogram.
this->AddScore(static_cast<uint8_t>(score / 10 + 0.5f));
AddScore(static_cast<uint8_t>(score / 10 + 0.5f));
#ifdef MS_LOG_DEV
MS_DEBUG_TAG(
......@@ -129,7 +129,7 @@ namespace RTC
score);
report->Dump();
this->Dump();
Dump();
#endif
}
......
......@@ -261,7 +261,7 @@ namespace RTC
if (timer == this->statusCheckTimer)
{
this->CheckStatus();
CheckStatus();
}
}
} // namespace RTC
......@@ -27,15 +27,15 @@ namespace RTC
std::string ip;
uint16_t port;
Utils::IP::GetAddressInfo(this->GetLocalAddress(), &ipFamily, ip, &port);
Utils::IP::GetAddressInfo(GetLocalAddress(), &ipFamily, ip, &port);
json[JsonStringLocalIp] = ip;
json[JsonStringLocalPort] = Json::UInt{ port };
if (this->GetProtocol() == RTC::TransportTuple::Protocol::UDP)
if (GetProtocol() == RTC::TransportTuple::Protocol::UDP)
json[JsonStringProtocol] = JsonStringUdp;
else
json[JsonStringProtocol] = JsonStringTcp;
Utils::IP::GetAddressInfo(this->GetRemoteAddress(), &ipFamily, ip, &port);
Utils::IP::GetAddressInfo(GetRemoteAddress(), &ipFamily, ip, &port);
json[JsonStringRemoteIp] = ip;
json[JsonStringRemotePort] = Json::UInt{ port };
......
......@@ -1251,7 +1251,7 @@ namespace RTC
packet.SetBitrate(effectiveBitrate);
packet.SetSsrcs(ssrcs);
packet.Serialize(RTC::RTCP::Buffer);
this->SendRtcpPacket(&packet);
SendRtcpPacket(&packet);
if (now - this->lastEffectiveMaxBitrateAt > EffectiveMaxBitrateCheckInterval)
{
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论