summaryrefslogtreecommitdiffstats
path: root/video/out/vo.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-01 19:23:26 +0200
committerwm4 <wm4@nowhere>2015-07-01 22:37:51 +0200
commitc5e3613bbaecec9669871fde86b97032ab3b954a (patch)
tree36bc663056297dceb1e1c77fa4e027dbab8872ed /video/out/vo.c
parent41ad9d8924cad07948ee7c2eaff9d0fa1be0b044 (diff)
downloadmpv-c5e3613bbaecec9669871fde86b97032ab3b954a.tar.bz2
mpv-c5e3613bbaecec9669871fde86b97032ab3b954a.tar.xz
video: pass vsync offset to VO
For now, this is trivial (and actually redundant). The future display sync code will make better use of it. The main point is that the new internal API pretty much makes this transparent to the vo_opengl interpolation code.
Diffstat (limited to 'video/out/vo.c')
-rw-r--r--video/out/vo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index 68af6a38c8..ae5eca7ba5 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -716,6 +716,7 @@ static bool render_frame(struct vo *vo)
.pts = pts,
.next_vsync = next_vsync,
.prev_vsync = prev_vsync,
+ .vsync_offset = next_vsync - pts,
.frame = img,
.num_future_frames = num_future_frames,
.future_frames = future_frames,