[vlc-commits] xcb:window: convert vlc_tick_t to milliseconds using MS_FROM_VLC_TICK()

Steve Lhomme git at videolan.org
Fri Jul 6 16:07:24 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jun 14 14:08:03 2018 +0200| [254863816a0e3af597af3b70aa84e2cbf64346dc] | committer: Steve Lhomme

xcb:window: convert vlc_tick_t to milliseconds using MS_FROM_VLC_TICK()

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

 modules/video_output/xcb/window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/xcb/window.c b/modules/video_output/xcb/window.c
index 79c256a054..6152d420ce 100644
--- a/modules/video_output/xcb/window.c
+++ b/modules/video_output/xcb/window.c
@@ -328,7 +328,7 @@ static void *Thread (void *data)
         if (deadline != INT64_MAX)
         {
             vlc_tick_t delay = deadline - vlc_tick_now();
-            timeout = (delay > 0) ? delay / (CLOCK_FREQ / 1000) : 0;
+            timeout = (delay > 0) ? MS_FROM_VLC_TICK(delay) : 0;
         }
 
         int val = poll(&ufd, 1, timeout);



More information about the vlc-commits mailing list