[vlc-commits] os2: convert timer ticks to milliseconds using MS_FROM_VLC_TICK()

Steve Lhomme git at videolan.org
Thu Jul 5 15:15:25 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jul  5 15:13:10 2018 +0200| [6f0f31bf2925e7e058562a9f6e2dd9d3ef314c32] | committer: Steve Lhomme

os2: convert timer ticks to milliseconds using MS_FROM_VLC_TICK()

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

 src/os2/thread.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/os2/thread.c b/src/os2/thread.c
index f599a06f9e..b963b8893f 100644
--- a/src/os2/thread.c
+++ b/src/os2/thread.c
@@ -1018,8 +1018,8 @@ void vlc_timer_schedule (vlc_timer_t timer, bool absolute,
     value = (value + 999) / 1000;
     interval = (interval + 999) / 1000;
 
-    timer->interval = interval;
-    if (DosAsyncTimer (value, (HSEM)timer->hev, &timer->htimer))
+    timer->interval = MS_FROM_VLC_TICK(interval);
+    if (DosAsyncTimer (MS_FROM_VLC_TICK(value), (HSEM)timer->hev, &timer->htimer))
         abort ();
 }
 



More information about the vlc-commits mailing list