diff options
Diffstat (limited to 'video/out/vo_rpi.c')
-rw-r--r-- | video/out/vo_rpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_rpi.c b/video/out/vo_rpi.c index e0ee85c162..55f1a68edb 100644 --- a/video/out/vo_rpi.c +++ b/video/out/vo_rpi.c @@ -477,7 +477,7 @@ static void wait_next_vsync(struct vo *vo) { struct priv *p = vo->priv; mp_mutex_lock(&p->display_mutex); - int64_t end = mp_time_ns_add(mp_time_ns(), 0.050); + int64_t end = mp_time_ns() + MP_TIME_MS_TO_NS(50); int64_t old = p->vsync_counter; while (old == p->vsync_counter && !p->reload_display) { if (mp_cond_timedwait_until(&p->display_cond, &p->display_mutex, end)) |