Mark all virtual overrides in the hierarchy of RtpData and RtpReceiver as such.
This will make further changes to these classes safer by ensuring that the compile breaks if the base class changes and not all overrides are fixed. This also highlighted a number of unused functions which I've removed. -- This is was reviewed in https://webrtc-codereview.appspot.com/19309004/, but -- a new cl was needed to resolve a small conflict before committing. BUG=none TEST=none TBR=pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/22359004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7162 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -34,47 +34,38 @@ class RtpReceiverImpl : public RtpReceiver {
|
||||
|
||||
virtual ~RtpReceiverImpl();
|
||||
|
||||
RTPReceiverStrategy* GetMediaReceiver() const;
|
||||
|
||||
int32_t RegisterReceivePayload(
|
||||
virtual int32_t RegisterReceivePayload(
|
||||
const char payload_name[RTP_PAYLOAD_NAME_SIZE],
|
||||
const int8_t payload_type,
|
||||
const uint32_t frequency,
|
||||
const uint8_t channels,
|
||||
const uint32_t rate);
|
||||
const uint32_t rate) OVERRIDE;
|
||||
|
||||
int32_t DeRegisterReceivePayload(const int8_t payload_type);
|
||||
virtual int32_t DeRegisterReceivePayload(const int8_t payload_type) OVERRIDE;
|
||||
|
||||
bool IncomingRtpPacket(
|
||||
virtual bool IncomingRtpPacket(
|
||||
const RTPHeader& rtp_header,
|
||||
const uint8_t* payload,
|
||||
int payload_length,
|
||||
PayloadUnion payload_specific,
|
||||
bool in_order);
|
||||
bool in_order) OVERRIDE;
|
||||
|
||||
NACKMethod NACK() const;
|
||||
virtual NACKMethod NACK() const OVERRIDE;
|
||||
|
||||
// Turn negative acknowledgement requests on/off.
|
||||
void SetNACKStatus(const NACKMethod method);
|
||||
virtual void SetNACKStatus(const NACKMethod method) OVERRIDE;
|
||||
|
||||
// Returns the last received timestamp.
|
||||
bool Timestamp(uint32_t* timestamp) const;
|
||||
bool LastReceivedTimeMs(int64_t* receive_time_ms) const;
|
||||
virtual bool Timestamp(uint32_t* timestamp) const OVERRIDE;
|
||||
virtual bool LastReceivedTimeMs(int64_t* receive_time_ms) const OVERRIDE;
|
||||
|
||||
uint32_t SSRC() const;
|
||||
virtual uint32_t SSRC() const OVERRIDE;
|
||||
|
||||
int32_t CSRCs(uint32_t array_of_csrc[kRtpCsrcSize]) const;
|
||||
virtual int32_t CSRCs(uint32_t array_of_csrc[kRtpCsrcSize]) const OVERRIDE;
|
||||
|
||||
int32_t Energy(uint8_t array_of_energy[kRtpCsrcSize]) const;
|
||||
virtual int32_t Energy(uint8_t array_of_energy[kRtpCsrcSize]) const OVERRIDE;
|
||||
|
||||
// RTX.
|
||||
void SetRTXStatus(bool enable, uint32_t ssrc);
|
||||
|
||||
void RTXStatus(bool* enable, uint32_t* ssrc, int* payload_type) const;
|
||||
|
||||
void SetRtxPayloadType(int payload_type);
|
||||
|
||||
TelephoneEventHandler* GetTelephoneEventHandler();
|
||||
virtual TelephoneEventHandler* GetTelephoneEventHandler() OVERRIDE;
|
||||
|
||||
private:
|
||||
bool HaveReceivedFrame() const;
|
||||
|
||||
Reference in New Issue
Block a user