[Live-devel] [PATCH] Fix NPT calculation for OnDemand server
Gilles Chanteperdrix
gilles.chanteperdrix at xenomai.org
Sat Feb 21 15:09:55 PST 2015
---
liveMedia/OnDemandServerMediaSubsession.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/liveMedia/OnDemandServerMediaSubsession.cpp b/liveMedia/OnDemandServerMediaSubsession.cpp
index 2f0a8d2..fd3f3fa 100644
--- a/liveMedia/OnDemandServerMediaSubsession.cpp
+++ b/liveMedia/OnDemandServerMediaSubsession.cpp
@@ -335,7 +335,7 @@ float OnDemandServerMediaSubsession::getCurrentNPT(void* streamToken) {
return streamState->startNPT()
+ (rtpSink->mostRecentPresentationTime().tv_sec - rtpSink->initialPresentationTime().tv_sec)
- + (rtpSink->mostRecentPresentationTime().tv_sec - rtpSink->initialPresentationTime().tv_sec)/1000000.0f;
+ + (rtpSink->mostRecentPresentationTime().tv_usec - rtpSink->initialPresentationTime().tv_usec)/1000000.0f;
} while (0);
return 0.0;
--
1.7.10.4
More information about the live-devel
mailing list