diff options
author | wm4 <wm4@nowhere> | 2015-11-04 14:26:28 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-11-04 21:49:54 +0100 |
commit | e6a395c2979689761a5d86bdf1863530f5553f9d (patch) | |
tree | 4be9c1413287ef9cf5227c0425874de440d7fbdd /video/out/vo.c | |
parent | be49da72ea245e2b5227ce4b96b6c2c8f360cfaf (diff) | |
download | mpv-e6a395c2979689761a5d86bdf1863530f5553f9d.tar.bz2 mpv-e6a395c2979689761a5d86bdf1863530f5553f9d.tar.xz |
vo_opengl, vo_opengl_cb: drop unneeded vo_frame fields
next_vsync/prev_vsync was only used to retrieve the vsync duration. We
can get this in a simpler way.
This also removes the vsync duration estimation from vo_opengl_cb.c,
which is probably worthless anyway. (And once interpolation is made
display-sync only, this won't matter at all.)
Diffstat (limited to 'video/out/vo.c')
-rw-r--r-- | video/out/vo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/video/out/vo.c b/video/out/vo.c index 46958e7f62..35c583b35f 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -640,8 +640,7 @@ static bool render_frame(struct vo *vo) int64_t prev_vsync = prev_sync(vo, mp_time_us()); int64_t next_vsync = prev_vsync + in->vsync_interval; - frame->next_vsync = next_vsync; - frame->prev_vsync = prev_vsync; + frame->vsync_interval = in->vsync_interval; // Time at which we should flip_page on the VO. int64_t target = frame->display_synced ? 0 : pts - in->flip_queue_offset; |