From 7040968be41cab1a9aa6129afe7c76129c74c2f8 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Thu, 15 Mar 2012 01:24:52 +0200 Subject: core: restructure main play loop, continue audio after video Restructure parts of the code in the main play loop. The main functionality difference is that if a video track ends first, now audio will continue to be played until it ends too. Now the process also wakes up less often if there's no need to update video or audio. This will reduce unnecessary wakeups especially when paused, but may make handling of input events laggier when fd-based notifications are not supported (like most input on Windows). --- libvo/video_out.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libvo') diff --git a/libvo/video_out.c b/libvo/video_out.c index 9573439882..18ca3e99e9 100644 --- a/libvo/video_out.c +++ b/libvo/video_out.c @@ -376,6 +376,7 @@ void vo_seek_reset(struct vo *vo) { vo_control(vo, VOCTRL_RESET, NULL); vo->frame_loaded = false; + vo->hasframe = false; } void vo_destroy(struct vo *vo) -- cgit v1.2.3