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.h | |
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.h')
-rw-r--r-- | video/out/vo.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/video/out/vo.h b/video/out/vo.h index cc280987a5..213b287ab2 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -157,9 +157,8 @@ struct vo_frame { int64_t pts; // Approximate frame duration, in us. int duration; - // Realtime of estimated previous and next vsync events. - int64_t next_vsync; - int64_t prev_vsync; + // Realtime of estimated distance between 2 vsync events. + int64_t vsync_interval; // "ideal" display time within the vsync int64_t vsync_offset; // how often the frame will be repeated (does not include OSD redraws) |