From 6ef40cb91024b7d76694760a74fa2dd5b44025a1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 16 Sep 2014 22:06:27 +0200 Subject: video: wake up core as soon as possible There's no reason to let the core wait until the frame is done displaying. In practice, the core normally didn't need this additional wakeup, and the VO was quick enough to fetch the new frame, before the core even attempted to queue a new frame. But it wasn't entirely clean, and the correct wakeup handling might matter in some cases. --- video/out/vo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/video/out/vo.c b/video/out/vo.c index 09d203ab2f..890052d67f 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -573,6 +573,7 @@ static bool render_frame(struct vo *vo) } else { in->hasframe_rendered = true; pthread_mutex_unlock(&in->lock); + mp_input_wakeup(vo->input_ctx); // core can queue new video now MP_STATS(vo, "start video"); -- cgit v1.2.3