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

Cosmetic

上级 1a4a8ae2
...@@ -42,8 +42,8 @@ namespace RTC ...@@ -42,8 +42,8 @@ namespace RTC
bool IsEnabled() const; bool IsEnabled() const;
const RTC::RtpParameters& GetParameters() const; const RTC::RtpParameters& GetParameters() const;
bool IsPaused() const; bool IsPaused() const;
void SetSourcePaused(); void SourcePaused();
void SetSourceResumed(); void SourceResumed();
void SendRtpPacket(RTC::RtpPacket* packet); void SendRtpPacket(RTC::RtpPacket* packet);
void GetRtcp(RTC::RTCP::CompoundPacket* packet, uint64_t now); void GetRtcp(RTC::RTCP::CompoundPacket* packet, uint64_t now);
void ReceiveNack(RTC::RTCP::FeedbackRtpNackPacket* nackPacket); void ReceiveNack(RTC::RTCP::FeedbackRtpNackPacket* nackPacket);
...@@ -111,7 +111,7 @@ namespace RTC ...@@ -111,7 +111,7 @@ namespace RTC
return this->paused || this->sourcePaused; return this->paused || this->sourcePaused;
} }
inline void Consumer::SetSourcePaused() inline void Consumer::SourcePaused()
{ {
if (this->sourcePaused) if (this->sourcePaused)
return; return;
...@@ -125,7 +125,7 @@ namespace RTC ...@@ -125,7 +125,7 @@ namespace RTC
Pause(); Pause();
} }
inline void Consumer::SetSourceResumed() inline void Consumer::SourceResumed()
{ {
if (!this->sourcePaused) if (!this->sourcePaused)
return; return;
......
...@@ -459,7 +459,7 @@ namespace RTC ...@@ -459,7 +459,7 @@ namespace RTC
// If the Producer is paused tell it to the new Consumer. // If the Producer is paused tell it to the new Consumer.
if (producer->IsPaused()) if (producer->IsPaused())
consumer->SetSourcePaused(); consumer->SourcePaused();
// Add us as listener. // Add us as listener.
consumer->AddListener(this); consumer->AddListener(this);
...@@ -888,7 +888,7 @@ namespace RTC ...@@ -888,7 +888,7 @@ namespace RTC
for (auto* consumer : consumers) for (auto* consumer : consumers)
{ {
consumer->SetSourcePaused(); consumer->SourcePaused();
} }
} }
...@@ -904,7 +904,7 @@ namespace RTC ...@@ -904,7 +904,7 @@ namespace RTC
for (auto* consumer : consumers) for (auto* consumer : consumers)
{ {
consumer->SetSourceResumed(); consumer->SourceResumed();
} }
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论