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/osd.c | |
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/osd.c')
-rw-r--r-- | player/osd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/player/osd.c b/player/osd.c index 32533eac1d..5f765618ae 100644 --- a/player/osd.c +++ b/player/osd.c @@ -181,8 +181,7 @@ void print_status(struct MPContext *mpctx) saddf(&line, ": "); // Playback position - double cur = get_current_time(mpctx); - sadd_hhmmssff(&line, cur, mpctx->opts->osd_fractions); + sadd_hhmmssff(&line, get_playback_time(mpctx), mpctx->opts->osd_fractions); double len = get_time_length(mpctx); if (len >= 0) { @@ -437,7 +436,7 @@ static void sadd_osd_status(char **buffer, struct MPContext *mpctx, bool full) *buffer = talloc_strdup_append(*buffer, text); talloc_free(text); } else { - sadd_hhmmssff(buffer, get_current_time(mpctx), fractions); + sadd_hhmmssff(buffer, get_playback_time(mpctx), fractions); if (full) { saddf(buffer, " / "); sadd_hhmmssff(buffer, get_time_length(mpctx), fractions); |