[vlc-commits] win32:thread: cleaner conversion from 100ns to vlc_tick_t
Steve Lhomme
git at videolan.org
Tue Sep 25 12:19:48 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Sep 25 09:54:26 2018 +0200| [f5f292315b338802938479b26df31cdc2ba7842e] | committer: Steve Lhomme
win32:thread: cleaner conversion from 100ns to vlc_tick_t
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f5f292315b338802938479b26df31cdc2ba7842e
---
src/win32/thread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/win32/thread.c b/src/win32/thread.c
index dba34623a2..e4c1e840a4 100644
--- a/src/win32/thread.c
+++ b/src/win32/thread.c
@@ -760,7 +760,7 @@ static vlc_tick_t mdate_wall (void)
s.HighPart = ts.dwHighDateTime;
/* hundreds of nanoseconds */
static_assert ((10000000 % CLOCK_FREQ) == 0, "Broken frequencies ratio");
- return s.QuadPart / (10000000 / CLOCK_FREQ);
+ return VLC_TICK_FROM_MSFTIME(s.QuadPart);
}
static vlc_tick_t mdate_default(void)
More information about the vlc-commits
mailing list