summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-05-10 16:59:40 +0200
committerwm4 <wm4@nowhere>2020-05-10 17:00:11 +0200
commit4e94b2177aaae540f44feea0a84cdfb69080a691 (patch)
tree8cee83517ab7a152b2d12cd957bf26488ee8808e
parenta7d11b2fc032bff3d976a41c95f9ab3846265b58 (diff)
downloadmpv-4e94b2177aaae540f44feea0a84cdfb69080a691.tar.bz2
mpv-4e94b2177aaae540f44feea0a84cdfb69080a691.tar.xz
vo: fix forgotten debug code
This was not intended to be committed in 0e3f8936062967a9db. It disables the extra wakeup if working==true. I've convinced myself that the wakeup was really needed at the time, so no idea how I didn't notice this until someone pointed it out on the commit diff on github (lol).
-rw-r--r--video/out/vo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index afc6ff770e..68aff6eccb 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -1088,7 +1088,7 @@ static void *vo_thread(void *ptr)
break;
stats_event(in->stats, "iterations");
vo->driver->control(vo, VOCTRL_CHECK_EVENTS, NULL);
- bool working = render_frame(vo)&&0;
+ bool working = render_frame(vo);
int64_t now = mp_time_us();
int64_t wait_until = now + (working ? 0 : (int64_t)1e9);