Commit 020fbe57 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix one shot timers

parent 66c47c31
......@@ -833,6 +833,12 @@ static void *vlc_timer_thread (void *data)
unsigned misses;
vlc_mutex_lock (&timer->lock);
if (timer->interval == 0)
{
timer->value = 0; /* disarm */
continue;
}
misses = (now - timer->value) / timer->interval;
timer->value += timer->interval;
/* Try to compensate for one miss (mwait() will return immediately)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment