From e5021fe5905e3cad792738e6aaadc6ddc742d42b Mon Sep 17 00:00:00 2001 From: "stefan@webrtc.org" Date: Tue, 15 Oct 2013 10:38:40 +0000 Subject: [PATCH] Make RtpData and RtpFeedback destructors public. R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2399004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4965 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h b/webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h index 85aa36f0e..21dcc9f38 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 {