diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-28 12:09:31 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-28 12:18:45 +0300 |
commit | eaf7857b7f7ae6b05ce9d129157e0ff33ed2081b (patch) | |
tree | 17005cd968a137ae8902e408e454cfd32fc033ec /mp_core.h | |
parent | c693b77e935e7e34e21bafed2df0ff891d0e25ac (diff) | |
download | mpv-eaf7857b7f7ae6b05ce9d129157e0ff33ed2081b.tar.bz2 mpv-eaf7857b7f7ae6b05ce9d129157e0ff33ed2081b.tar.xz |
timers: Remove GetRelativeTime()
Move the code calculating time delta since last query out of the
platform-specific drivers and into mplayer.c. The platform-specific
drivers now return absolute values only.
The way the code in timer-darwin.c uses doubles in wrapping arithmetic
looks questionable and this change might make problems in it more
visible.
Diffstat (limited to 'mp_core.h')
-rw-r--r-- | mp_core.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -70,6 +70,11 @@ typedef struct MPContext { // by the audio CPU usage meter. double delay; + // Timestamp from the last time some timing functions read the + // current time, in (occasionally wrapping) microseconds. Used + // to turn a new time value to a delta from last time. + unsigned int last_time; + // Used to communicate the parameters of a seek between parts float rel_seek_secs; int abs_seek_pos; |