From 4e94b2177aaae540f44feea0a84cdfb69080a691 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 10 May 2020 16:59:40 +0200 Subject: 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). --- video/out/vo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') 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); -- cgit v1.2.3