diff options
author | Uoti Urpala <uau@mplayer2.org> | 2012-03-15 01:24:52 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2012-03-19 23:05:02 +0200 |
commit | 7040968be41cab1a9aa6129afe7c76129c74c2f8 (patch) | |
tree | f3e8f57739f2f7af318f0e812ce3014d638ede17 /libvo | |
parent | 06c702ec5258bcdd5a5fbf7c879bfc7e2705cbf8 (diff) | |
download | mpv-7040968be41cab1a9aa6129afe7c76129c74c2f8.tar.bz2 mpv-7040968be41cab1a9aa6129afe7c76129c74c2f8.tar.xz |
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).
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/video_out.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |