summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-27 22:04:44 +0100
committerwm4 <wm4@nowhere>2015-11-27 22:04:44 +0100
commit7023c383b22a9619840b88175a8c272f2f9d4414 (patch)
tree5bb7828079a20407971c72380f74a3f4164adb5b /video/out/vo.h
parent2bee47fd27f4ee544f1db15fcedf8cd94df89610 (diff)
downloadmpv-7023c383b22a9619840b88175a8c272f2f9d4414.tar.bz2
mpv-7023c383b22a9619840b88175a8c272f2f9d4414.tar.xz
vo: change vo_frame field units
This was just converting back and forth between int64_t/microseconds and double/seconds. Remove this stupidity. The pts/duration fields are still in microseconds, but they have no meaning in the display-sync case (also drop printing the pts field from opengl/video.c - it's always 0).
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index 05c50bb3dd..051638882b 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -165,9 +165,9 @@ struct vo_frame {
// Approximate frame duration, in us.
int duration;
// Realtime of estimated distance between 2 vsync events.
- int64_t vsync_interval;
+ double vsync_interval;
// "ideal" display time within the vsync
- int64_t vsync_offset;
+ double vsync_offset;
// how often the frame will be repeated (does not include OSD redraws)
int num_vsyncs;
// Set if the current frame is repeated from the previous. It's guaranteed