From 51e7b01fac9470ce8ff17de65e4dc615c9d33dd1 Mon Sep 17 00:00:00 2001 From: beveloper Date: Wed, 1 Oct 2003 17:01:06 +0000 Subject: [PATCH] changed timeout calculation git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4918 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/media/MediaEventLooper.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/kits/media/MediaEventLooper.cpp b/src/kits/media/MediaEventLooper.cpp index 7187b76146..f2ffa18b2c 100644 --- a/src/kits/media/MediaEventLooper.cpp +++ b/src/kits/media/MediaEventLooper.cpp @@ -222,14 +222,12 @@ BMediaEventLooper::ControlLoop() // only the scheduling latency). latency = fEventLatency + fSchedulingLatency; -// printf("node %02d, latency %Ld\n", ID(), latency); - if (fEventQueue.HasEvents() && (TimeSource()->Now() - latency) >= fEventQueue.FirstEventTime()) { // printf("node %02d waiting for %12Ld that has already happened, now %12Ld\n", ID(), fEventQueue.FirstEventTime(), system_time()); is_realtime = false; break; } - if (fRealTimeQueue.HasEvents() && (TimeSource()->RealTimeFor(TimeSource()->Now(),fSchedulingLatency)) >= fRealTimeQueue.FirstEventTime()) { + if (fRealTimeQueue.HasEvents() && (TimeSource()->RealTime() - fSchedulingLatency) >= fRealTimeQueue.FirstEventTime()) { latency = fSchedulingLatency; is_realtime = true; break;