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/webrtc@4965 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/modules/rtp_rtcp/interface/rtp_rtcp_defines.h b/modules/rtp_rtcp/interface/rtp_rtcp_defines.h
index 85aa36f..21dcc9f 100644
--- a/modules/rtp_rtcp/interface/rtp_rtcp_defines.h
+++ b/modules/rtp_rtcp/interface/rtp_rtcp_defines.h
@@ -191,6 +191,8 @@
class RtpData
{
public:
+ virtual ~RtpData() {}
+
virtual int32_t OnReceivedPayloadData(
const uint8_t* payloadData,
const uint16_t payloadSize,
@@ -198,8 +200,6 @@
virtual bool OnRecoveredPacket(const uint8_t* packet,
int packet_length) = 0;
-protected:
- virtual ~RtpData() {}
};
class RtcpFeedback
@@ -225,6 +225,8 @@
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 @@
const bool added) = 0;
virtual void ResetStatistics(uint32_t ssrc) = 0;
-
-protected:
- virtual ~RtpFeedback() {}
};
class RtpAudioFeedback {