Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
satoren committed Nov 18, 2021
1 parent e7de5d9 commit 57f3dd8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 18 deletions.
15 changes: 8 additions & 7 deletions worker/include/RTC/Consumer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,14 @@ namespace RTC
{
this->externallyManagedBitrate = true;
}
virtual uint8_t GetBitratePriority() const = 0;
virtual uint32_t IncreaseLayer(uint32_t bitrate, bool considerLoss) = 0;
virtual void ApplyLayers() = 0;
virtual uint32_t GetDesiredBitrate() const = 0;
virtual void SendRtpPacket(RTC::RtpPacket* packet, RTC::RtpPacket** clonedPacket) = 0;
virtual const std::vector<RTC::RtpStreamSend*>& GetRtpStreams() const = 0;
virtual RTC::RTCP::CompoundPacket::UniquePtr GetRtcp(RTC::RtpStreamSend* rtpStream, uint64_t nowMs) = 0;
virtual uint8_t GetBitratePriority() const = 0;
virtual uint32_t IncreaseLayer(uint32_t bitrate, bool considerLoss) = 0;
virtual void ApplyLayers() = 0;
virtual uint32_t GetDesiredBitrate() const = 0;
virtual void SendRtpPacket(RTC::RtpPacket* packet, RTC::RtpPacket** clonedPacket) = 0;
virtual const std::vector<RTC::RtpStreamSend*>& GetRtpStreams() const = 0;
virtual RTC::RTCP::CompoundPacket::UniquePtr GetRtcp(
RTC::RtpStreamSend* rtpStream, uint64_t nowMs) = 0;
virtual void NeedWorstRemoteFractionLost(uint32_t mappedSsrc, uint8_t& worstRemoteFractionLost) = 0;
virtual void ReceiveNack(RTC::RTCP::FeedbackRtpNackPacket* nackPacket) = 0;
virtual void ReceiveKeyFrameRequest(
Expand Down
18 changes: 9 additions & 9 deletions worker/include/RTC/RTCP/CompoundPacket.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ namespace RTC

namespace std
{
template<>
struct default_delete<RTC::RTCP::CompoundPacket>
{
void operator()( RTC::RTCP::CompoundPacket* ptr ) const
{
RTC::RTCP::CompoundPacket::ReturnIntoPool(ptr);
}
};
};
template<>
struct default_delete<RTC::RTCP::CompoundPacket>
{
void operator()(RTC::RTCP::CompoundPacket* ptr) const
{
RTC::RTCP::CompoundPacket::ReturnIntoPool(ptr);
}
};
}; // namespace std
#endif
3 changes: 2 additions & 1 deletion worker/src/RTC/SimpleConsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ namespace RTC
packet->SetSequenceNumber(origSeq);
}

RTC::RTCP::CompoundPacket::UniquePtr SimpleConsumer::GetRtcp(RTC::RtpStreamSend* rtpStream, uint64_t nowMs)
RTC::RTCP::CompoundPacket::UniquePtr SimpleConsumer::GetRtcp(
RTC::RtpStreamSend* rtpStream, uint64_t nowMs)
{
MS_TRACE();

Expand Down
3 changes: 2 additions & 1 deletion worker/src/RTC/SimulcastConsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,8 @@ namespace RTC
packet->RestorePayload();
}

RTC::RTCP::CompoundPacket::UniquePtr SimulcastConsumer::GetRtcp(RTC::RtpStreamSend* rtpStream, uint64_t nowMs)
RTC::RTCP::CompoundPacket::UniquePtr SimulcastConsumer::GetRtcp(
RTC::RtpStreamSend* rtpStream, uint64_t nowMs)
{
MS_TRACE();

Expand Down

0 comments on commit 57f3dd8

Please sign in to comment.