summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2006-05-15 20:40:42 +0000
committerHenri Herscher <henri@oreka.org>2006-05-15 20:40:42 +0000
commit3af3283a6d47dd1b98384753bf86de13106d14ec (patch)
tree64189d182811d44419acd84cb2a78612c6f309ba
parentd3c2260dd67fe80d256869b81812ff1e3171c62f (diff)
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
-rw-r--r--orkaudio/AudioTape.cpp2
-rw-r--r--orkaudio/audiocaptureplugins/voip/RtpSession.cpp2
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;
}