summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}