diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2015-07-04 19:26:14 +1000 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-07-04 15:54:14 +0200 |
commit | f544bcf1056e0acee483a951408160fa2d39ffdd (patch) | |
tree | 1abdb317482b008ead74c083ee0a804bae98ca2e /bootstrap.py | |
parent | 029da5abce6e1ef6eddf351650fe7d6fe3746f0b (diff) | |
download | mpv-f544bcf1056e0acee483a951408160fa2d39ffdd.tar.bz2 mpv-f544bcf1056e0acee483a951408160fa2d39ffdd.tar.xz |
win32: use QueryPerformanceCounter for timing
clock_gettime is implemented in winpthreads, so it's unavailable when
mpv is compiled with its internal pthreads implementation. This makes
mp_raw_time_us fall back to gettimeofday(), which can cause an assert
failure in mp_add_timeout() when the system clock is changed. Use
QueryPerformanceCounter instead.
The clock_gettime(CLOCK_MONOTONIC) implementation in winpthreads uses
QueryPerformanceCounter anyway, so there shouldn't be any change in
behaviour.
Diffstat (limited to 'bootstrap.py')
0 files changed, 0 insertions, 0 deletions