diff options
author | Tsukasa OMOTO <henry0312@gmail.com> | 2014-06-30 02:27:46 +0900 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-29 20:39:49 +0200 |
commit | a73415584c9dbf920ec14d26d0b0629cae81b3d5 (patch) | |
tree | 52e4bb2911b888f97ba5b3d736235494e89311ce /player/core.h | |
parent | 7412257305140e5a21a1acd35f6be546b9295dd5 (diff) | |
download | mpv-a73415584c9dbf920ec14d26d0b0629cae81b3d5.tar.bz2 mpv-a73415584c9dbf920ec14d26d0b0629cae81b3d5.tar.xz |
player: make the time display relative to start PTS
This commit makes the playback start time always at time 0.
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'player/core.h')
-rw-r--r-- | player/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/player/core.h b/player/core.h index 4a52424ca9..3b87f47423 100644 --- a/player/core.h +++ b/player/core.h @@ -439,6 +439,7 @@ void queue_seek(struct MPContext *mpctx, enum seek_type type, double amount, bool mp_seek_chapter(struct MPContext *mpctx, int chapter); double get_time_length(struct MPContext *mpctx); double get_current_time(struct MPContext *mpctx); +double get_playback_time(struct MPContext *mpctx); int get_percent_pos(struct MPContext *mpctx); double get_current_pos_ratio(struct MPContext *mpctx, bool use_range); int get_current_chapter(struct MPContext *mpctx); |