From 872b7a26549568dc72cae7fae024c4c3a103c845 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 26 Aug 2016 20:19:39 +0200 Subject: vo: remove redundant wakeup Shouldn't matter. Was pointed out by someone. The change should help avoiding extra unneeded wakeups on the VO thread. --- video/out/vo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/video/out/vo.c b/video/out/vo.c index 139b840c23..0d70106ed8 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -665,7 +665,9 @@ bool vo_is_ready_for_frame(struct vo *vo, int64_t next_pts) r = false; if (!in->wakeup_pts || next_pts < in->wakeup_pts) { in->wakeup_pts = next_pts; - wakeup_locked(vo); + // If we have to wait, update the vo thread's timer. + if (!r) + wakeup_locked(vo); } } pthread_mutex_unlock(&in->lock); -- cgit v1.2.3