vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Sat Jan 26 
18:15:20 2019 +0200| [903a3b56445420fab2a952f8ab2aaa6e75704d7b] | committer: 
Rémi Denis-Courmont

win32: fix timer expiration (fixes #21124)

Regression from ec474d508320acbb0e765fc5822b953524531ffc.

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

 src/win32/timer.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/win32/timer.c b/src/win32/timer.c
index ba37d4b78f..e9f78c1b11 100644
--- a/src/win32/timer.c
+++ b/src/win32/timer.c
@@ -79,12 +79,10 @@ void vlc_timer_schedule (vlc_timer_t timer, bool absolute,
         if (value < 0)
             value = 0;
     }
-    value = (value + (1000-1)) / 1000;
-    interval = (interval + (1000-1)) / 1000;
 
-    if (!CreateTimerQueueTimer (&timer->handle, NULL, vlc_timer_do, timer,
-                                MS_FROM_VLC_TICK(value), 
MS_FROM_VLC_TICK(interval),
-                                WT_EXECUTEDEFAULT))
+    if (!CreateTimerQueueTimer(&timer->handle, NULL, vlc_timer_do, timer,
+                               MS_FROM_VLC_TICK(value),
+                               MS_FROM_VLC_TICK(interval), WT_EXECUTEDEFAULT))
         abort ();
 }
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to