mirror of
https://github.com/mpv-player/mpv
synced 2025-03-23 03:37:27 +00:00
input: fix compilation on windows
Currently I don't have a crosscompilation toolchain, so I couldn't test whether this actually compiles (and still can't).
This commit is contained in:
parent
7dc74bab32
commit
15c22fb0eb
@ -1008,10 +1008,8 @@ static void input_wait_read(struct input_ctx *ictx, int time)
|
||||
|
||||
static void input_wait_read(struct input_ctx *ictx, int time)
|
||||
{
|
||||
if (time > 0) {
|
||||
struct timespec deadline = mpthread_get_deadline(time / 1000.0);
|
||||
pthread_cond_timedwait(&ictx->wakeup, &ictx->mutex, &deadline);
|
||||
}
|
||||
if (time > 0)
|
||||
mpthread_cond_timedwait_rel(&ictx->wakeup, &ictx->mutex, time / 1000.0);
|
||||
|
||||
for (int i = 0; i < ictx->num_fds; i++)
|
||||
read_fd(ictx, &ictx->fds[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user