vlc | branch: master | Steve Lhomme <[email protected]> | 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) _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
