changed timeout calculation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4918 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
2feec67c73
commit
51e7b01fac
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user