From 3af3283a6d47dd1b98384753bf86de13106d14ec Mon Sep 17 00:00:00 2001 From: Henri Herscher Date: Mon, 15 May 2006 20:40:42 +0000 Subject: Recording duration is now based on the last time we got an RTP packet, not the end of the possible timeout. git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@231 09dcff7a-b715-0410-9601-b79a96267cd0 --- orkaudio/AudioTape.cpp | 2 +- orkaudio/audiocaptureplugins/voip/RtpSession.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/orkaudio/AudioTape.cpp b/orkaudio/AudioTape.cpp index 60580e3..7495dc3 100644 --- a/orkaudio/AudioTape.cpp +++ b/orkaudio/AudioTape.cpp @@ -192,7 +192,7 @@ void AudioTape::AddCaptureEvent(CaptureEventRef eventRef, bool send) case CaptureEvent::EtStop: m_shouldStop = true; - m_duration = time(NULL) - m_beginDate; + m_duration = eventRef->m_timestamp - m_beginDate; { // Log the call details diff --git a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp index c1c9bc8..d59e43d 100644 --- a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp +++ b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp @@ -56,7 +56,7 @@ void RtpSession::Stop() { CaptureEventRef stopEvent(new CaptureEvent); stopEvent->m_type = CaptureEvent::EtStop; - stopEvent->m_timestamp = time(NULL); + stopEvent->m_timestamp = m_lastUpdated; g_captureEventCallBack(stopEvent, m_capturePort); m_stopped = true; } -- cgit v1.2.3