summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2006-02-09 22:41:34 +0000
committerHenri Herscher <henri@oreka.org>2006-02-09 22:41:34 +0000
commitec7f2a3ec8904ccf83269ed5d0376f8fb8b1bf3d (patch)
treedc62a27ba76906c476ee9db4336ff1c88d701f8b
parentb088db5d99591b5aff120406cdc6a8151754e6f7 (diff)
Removed arrival time checking when calculating corrective timestamp offset.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@160 09dcff7a-b715-0410-9601-b79a96267cd0
-rw-r--r--orkaudio/audiocaptureplugins/voip/RtpSession.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
index e164291..2f618d4 100644
--- a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
+++ b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp
@@ -300,8 +300,8 @@ void RtpSession::AddRtpPacket(RtpPacketInfoRef& rtpPacket)
// Compute the corrective offset (only if the two streams have greatly different timestamp, eg for Cisco CallManager)
if(m_rtpTimestampCorrectiveOffset == 0 && m_lastRtpPacketSide2.get() != NULL)
{
- if (m_lastRtpPacketSide2->m_arrivalTimestamp == m_lastRtpPacketSide1->m_arrivalTimestamp)
- {
+ //if (m_lastRtpPacketSide2->m_arrivalTimestamp == m_lastRtpPacketSide1->m_arrivalTimestamp)
+ //{
int timestampOffset = m_lastRtpPacketSide2->m_timestamp - m_lastRtpPacketSide1->m_timestamp;
if(timestampOffset > 8000 || timestampOffset < -8000) // 1s @ 8KHz
{
@@ -312,7 +312,7 @@ void RtpSession::AddRtpPacket(RtpPacketInfoRef& rtpPacket)
LOG4CXX_DEBUG(m_log, m_trackingId + ": " + m_capturePort + ": " + "Applying timestamp corrective offset:" + timestampOffsetString);
}
}
- }
+ //}
}
// apply the corrective offset
if(m_lastRtpPacketSide2.get() != NULL)