diff options
author | pbos@webrtc.org <pbos@webrtc.org> | 2014-12-19 13:49:55 +0000 |
---|---|---|
committer | pbos@webrtc.org <pbos@webrtc.org> | 2014-12-19 13:49:55 +0000 |
commit | d16e839c6d29831e79312180085b6a19149df43f (patch) | |
tree | 6bb17b8446abceb236bf03aab191351cf066e5c2 /webrtc/modules/rtp_rtcp/source/rtcp_receiver.h | |
parent | 556caffb3631a67f2badf2ac08f87fe06850f8c3 (diff) | |
download | webrtc-d16e839c6d29831e79312180085b6a19149df43f.tar.gz |
Rtp-Rtcp sender cleanup.
Some setter functions from Rtp and Rtcp Sender never return negative values. Remove return results from those functions.
Also removed const on non-pointer/reference types for related files.
BUG=
R=henrika@webrtc.org, pbos@webrtc.org, stefan@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/34469004
Patch from Changbin Shao <changbin.shao@intel.com>.
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7962 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'webrtc/modules/rtp_rtcp/source/rtcp_receiver.h')
-rw-r--r-- | webrtc/modules/rtp_rtcp/source/rtcp_receiver.h | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_receiver.h b/webrtc/modules/rtp_rtcp/source/rtcp_receiver.h index b8fcb41e94..223da7692f 100644 --- a/webrtc/modules/rtp_rtcp/source/rtcp_receiver.h +++ b/webrtc/modules/rtp_rtcp/source/rtcp_receiver.h @@ -29,22 +29,21 @@ class ModuleRtpRtcpImpl; class RTCPReceiver : public TMMBRHelp { public: - RTCPReceiver(const int32_t id, Clock* clock, - ModuleRtpRtcpImpl* owner); + RTCPReceiver(int32_t id, Clock* clock, ModuleRtpRtcpImpl* owner); virtual ~RTCPReceiver(); - void ChangeUniqueId(const int32_t id); + void ChangeUniqueId(int32_t id); RTCPMethod Status() const; - int32_t SetRTCPStatus(const RTCPMethod method); + void SetRTCPStatus(RTCPMethod method); int64_t LastReceived(); int64_t LastReceivedReceiverReport() const; void SetSsrcs(uint32_t main_ssrc, const std::set<uint32_t>& registered_ssrcs); - void SetRelaySSRC( const uint32_t ssrc); - int32_t SetRemoteSSRC( const uint32_t ssrc); + void SetRelaySSRC(uint32_t ssrc); + int32_t SetRemoteSSRC(uint32_t ssrc); uint32_t RemoteSSRC() const; uint32_t RelaySSRC() const; @@ -59,8 +58,7 @@ public: void TriggerCallbacksFromRTCPPacket(RTCPHelp::RTCPPacketInformation& rtcpPacketInformation); // get received cname - int32_t CNAME(const uint32_t remoteSSRC, - char cName[RTCP_CNAME_SIZE]) const; + int32_t CNAME(uint32_t remoteSSRC, char cName[RTCP_CNAME_SIZE]) const; // get received NTP bool NTP(uint32_t* ReceivedNTPsecs, @@ -99,8 +97,8 @@ public: bool RtcpRrSequenceNumberTimeout(int64_t rtcp_interval_ms); // Get TMMBR - int32_t TMMBRReceived(const uint32_t size, - const uint32_t accNumCandidates, + int32_t TMMBRReceived(uint32_t size, + uint32_t accNumCandidates, TMMBRSet* candidateSet) const; bool UpdateRTCPReceiveInformationTimers(); @@ -113,21 +111,24 @@ public: RtcpStatisticsCallback* GetRtcpStatisticsCallback(); protected: - RTCPUtility::RTCPCnameInformation* CreateCnameInformation(const uint32_t remoteSSRC); - RTCPUtility::RTCPCnameInformation* GetCnameInformation(const uint32_t remoteSSRC) const; + RTCPUtility::RTCPCnameInformation* CreateCnameInformation(uint32_t remoteSSRC); + RTCPUtility::RTCPCnameInformation* GetCnameInformation( + uint32_t remoteSSRC) const; - RTCPHelp::RTCPReceiveInformation* CreateReceiveInformation(const uint32_t remoteSSRC); - RTCPHelp::RTCPReceiveInformation* GetReceiveInformation(const uint32_t remoteSSRC); + RTCPHelp::RTCPReceiveInformation* CreateReceiveInformation( + uint32_t remoteSSRC); + RTCPHelp::RTCPReceiveInformation* GetReceiveInformation(uint32_t remoteSSRC); void UpdateReceiveInformation( RTCPHelp::RTCPReceiveInformation& receiveInformation); void HandleSenderReceiverReport(RTCPUtility::RTCPParserV2& rtcpParser, RTCPHelp::RTCPPacketInformation& rtcpPacketInformation); - void HandleReportBlock(const RTCPUtility::RTCPPacket& rtcpPacket, - RTCPHelp::RTCPPacketInformation& rtcpPacketInformation, - const uint32_t remoteSSRC, - const uint8_t numberOfReportBlocks); + void HandleReportBlock( + const RTCPUtility::RTCPPacket& rtcpPacket, + RTCPHelp::RTCPPacketInformation& rtcpPacketInformation, + uint32_t remoteSSRC, + uint8_t numberOfReportBlocks); void HandleSDES(RTCPUtility::RTCPParserV2& rtcpParser); @@ -189,7 +190,7 @@ protected: void HandleTMMBRItem(RTCPHelp::RTCPReceiveInformation& receiveInfo, const RTCPUtility::RTCPPacket& rtcpPacket, RTCPHelp::RTCPPacketInformation& rtcpPacketInformation, - const uint32_t senderSSRC); + uint32_t senderSSRC); void HandleTMMBN(RTCPUtility::RTCPParserV2& rtcpParser, RTCPHelp::RTCPPacketInformation& rtcpPacketInformation); |