[vlc-devel] commit: Fix timer test ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Aug 2 13:56:20 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug  2 14:53:18 2009 +0300| [4d014d82eff282e9c03eca268ae95b22ef8b9cdb] | committer: Rémi Denis-Courmont 

Fix timer test

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4d014d82eff282e9c03eca268ae95b22ef8b9cdb
---

 src/test/timer.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/test/timer.c b/src/test/timer.c
index 189fada..00a806c 100644
--- a/src/test/timer.c
+++ b/src/test/timer.c
@@ -61,6 +61,7 @@ int main (void)
     vlc_timer_schedule (&data.timer, false, 1, CLOCK_FREQ / 10);
     msleep (CLOCK_FREQ);
     vlc_mutex_lock (&data.lock);
+    data.count += vlc_timer_getoverrun (&data.timer);
     printf ("Count = %u\n", data.count);
     assert (data.count >= 10);
     data.count = 0;
@@ -73,6 +74,7 @@ int main (void)
     vlc_timer_schedule (&data.timer, true, now, CLOCK_FREQ / 10);
     msleep (CLOCK_FREQ);
     vlc_mutex_lock (&data.lock);
+    data.count += vlc_timer_getoverrun (&data.timer);
     printf ("Count = %u\n", data.count);
     assert (data.count >= 10);
     vlc_mutex_unlock (&data.lock);




More information about the vlc-devel mailing list