diff --git a/webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h b/webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h index 85aa36f0e0..21dcc9f388 100644 --- a/webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h +++ b/webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h @@ -191,6 +191,8 @@ typedef std::list ReportBlockList; class RtpData { public: + virtual ~RtpData() {} + virtual int32_t OnReceivedPayloadData( const uint8_t* payloadData, const uint16_t payloadSize, @@ -198,8 +200,6 @@ public: virtual bool OnRecoveredPacket(const uint8_t* packet, int packet_length) = 0; -protected: - virtual ~RtpData() {} }; class RtcpFeedback @@ -225,6 +225,8 @@ protected: class RtpFeedback { public: + virtual ~RtpFeedback() {} + // Receiving payload change or SSRC change. (return success!) /* * channels - number of channels in codec (1 = mono, 2 = stereo) @@ -245,9 +247,6 @@ public: const bool added) = 0; virtual void ResetStatistics(uint32_t ssrc) = 0; - -protected: - virtual ~RtpFeedback() {} }; class RtpAudioFeedback {