diff options
author | wm4 <wm4@nowhere> | 2015-11-14 21:44:59 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-11-14 21:49:48 +0100 |
commit | a790009a630ebf12772ead2915ca9d59ee7fdf72 (patch) | |
tree | 38aff47c3020b117db46e47d1fe8413238d8770e /video/out/vo.h | |
parent | 542d88472f3e9ec8131d3470dfd02fd1cc36f3bd (diff) | |
download | mpv-a790009a630ebf12772ead2915ca9d59ee7fdf72.tar.bz2 mpv-a790009a630ebf12772ead2915ca9d59ee7fdf72.tar.xz |
player: account for minor VO underruns
If the player sends a frame with duration==0 to the VO, it can trivially
underrun. Don't panic, but keep the correct time.
Also, returning the absolute time from vo_get_next_frame_start_time()
just to turn it into a float with relative time was silly. Rename it and
make it return what the caller needs.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r-- | video/out/vo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo.h b/video/out/vo.h index c7bcccd778..30948e149b 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -342,7 +342,7 @@ void vo_set_queue_params(struct vo *vo, int64_t offset_us, bool vsync_timed, int vo_get_num_req_frames(struct vo *vo); int64_t vo_get_vsync_interval(struct vo *vo); double vo_get_display_fps(struct vo *vo); -int64_t vo_get_next_frame_start_time(struct vo *vo); +double vo_get_delay(struct vo *vo); void vo_wakeup(struct vo *vo); |