[asterisk-scf-commits] asterisk-scf/integration/media_rtp_pjmedia.git branch "rtcp" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Tue Jul 12 06:30:58 CDT 2011
branch "rtcp" has been updated
via 3eb956212440c9b0a32d9c5639c8c18ec186ed5e (commit)
from bf6b453b9d018f6aba0e2b0ab719472495f15d43 (commit)
Summary of changes:
src/RTPSource.cpp | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 3eb956212440c9b0a32d9c5639c8c18ec186ed5e
Author: Joshua Colp <jcolp at digium.com>
Date: Tue Jul 12 08:31:39 2011 -0300
Destroy the timer when it is no longer needed.
diff --git a/src/RTPSource.cpp b/src/RTPSource.cpp
index fba5983..6757d68 100644
--- a/src/RTPSource.cpp
+++ b/src/RTPSource.cpp
@@ -106,6 +106,11 @@ public:
StreamSourceRTPImplPriv(const RTPSessionImplPtr&, const string&);
/**
+ * Destructor for our StreamSourceRTPImplPriv class.
+ */
+ ~StreamSourceRTPImplPriv();
+
+ /**
* A structure containing incoming pjmedia session data.
*/
pjmedia_rtp_session mIncomingSession;
@@ -143,6 +148,18 @@ StreamSourceRTPImplPriv::StreamSourceRTPImplPriv(const RTPSessionImplPtr& sessio
}
/**
+ * Destructor for the StreamSourceRTPImplPriv class.
+ */
+StreamSourceRTPImplPriv::~StreamSourceRTPImplPriv()
+{
+ // Destroy the RTCP transmission timer if it exists
+ if (mTimer)
+ {
+ mTimer->destroy();
+ }
+}
+
+/**
* Constructor for the StreamSourceRTPImpl class.
*/
StreamSourceRTPImpl::StreamSourceRTPImpl(const RTPSessionImplPtr& session, const string& sessionId) :
-----------------------------------------------------------------------
--
asterisk-scf/integration/media_rtp_pjmedia.git
More information about the asterisk-scf-commits
mailing list