mirror of
https://github.com/mpv-player/mpv
synced 2025-01-14 02:51:26 +00:00
win32/pthread: fix calculation error in pthread_cond_timedwait
closes #12699
This commit is contained in:
parent
490af95c10
commit
97afea441b
@ -128,7 +128,7 @@ int pthread_cond_timedwait(pthread_cond_t *restrict cond,
|
||||
timeout_ms = INFINITE;
|
||||
} else if (abstime->tv_sec >= ts.tv_sec) {
|
||||
int64_t msec = (abstime->tv_sec - ts.tv_sec) * INT64_C(1000) +
|
||||
(abstime->tv_nsec - ts.tv_nsec) / INT64_C(10000000);
|
||||
(abstime->tv_nsec - ts.tv_nsec) / INT64_C(1000000);
|
||||
if (msec > ULONG_MAX) {
|
||||
timeout_ms = INFINITE;
|
||||
} else if (msec > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user