Bug 1028143 - Privatizing public destructor of MediaPipeline. r=jesup

This commit is contained in:
Anuj Agarwal 2014-07-12 10:34:00 +02:00
parent c1c35560a8
commit f453c4e828

View File

@ -68,14 +68,6 @@ class PeerIdentity;
// For a receiving conduit, "input" is RTP and "output" is RTCP.
//
class MediaPipeline;
template<>
struct HasDangerousPublicDestructor<MediaPipeline>
{
static const bool value = true;
};
class MediaPipeline : public sigslot::has_slots<> {
public:
enum Direction { TRANSMIT, RECEIVE };
@ -117,8 +109,6 @@ class MediaPipeline : public sigslot::has_slots<> {
transport_ = new PipelineTransport(this);
}
virtual ~MediaPipeline();
// Must be called on the STS thread. Must be called after ShutdownMedia_m().
void ShutdownTransport_s();
@ -172,6 +162,7 @@ class MediaPipeline : public sigslot::has_slots<> {
} RtpType;
protected:
virtual ~MediaPipeline();
virtual void DetachMediaStream() {}
// Separate class to allow ref counting