diff options
author | wm4 <wm4@nowhere> | 2013-04-04 01:18:19 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-04-04 01:18:19 +0200 |
commit | 69436967b9bc1f574c209e8c75df36d0936277e4 (patch) | |
tree | f51851d96662a424f6b4d6607abdbabe343fad9a /core/mp_core.h | |
parent | f3c26b6ab40ab91853bed51045ffeab96e2fde01 (diff) | |
download | mpv-69436967b9bc1f574c209e8c75df36d0936277e4.tar.bz2 mpv-69436967b9bc1f574c209e8c75df36d0936277e4.tar.xz |
mplayer: switch back to video PTS for reporting playback time
The main problem with video PTS was that it wasn't very useful when
playing audio files with cover art. Using the audio time instead was an
obvious solution. Unfortunately, this leads to "inexact" reporting of
the playback time in paused mode, and audio is always ahead by small,
essentially random amounts of time ahead. This is possibly because the
times reported by AOs are not entirely accurate when paused (see commit
9b3bf76).
Switch back to video PTS, and use a simpler way to deal with the cover
art case: if the video has ended, use the audio PTS.
Also see commit f9a259e (and the commits referenced from there).
Diffstat (limited to 'core/mp_core.h')
-rw-r--r-- | core/mp_core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/mp_core.h b/core/mp_core.h index 206ad030c9..b8782f14e9 100644 --- a/core/mp_core.h +++ b/core/mp_core.h @@ -215,6 +215,8 @@ typedef struct MPContext { // As video_pts, but is not reset when seeking away. (For the very short // period of time until a new frame is decoded and shown.) double last_vo_pts; + // Video PTS, or audio PTS if video has ended. + double playback_pts; float audio_delay; |