summaryrefslogtreecommitdiffstats
path: root/player/screenshot.c
diff options
context:
space:
mode:
authorTsukasa OMOTO <henry0312@gmail.com>2014-06-30 02:27:46 +0900
committerwm4 <wm4@nowhere>2014-06-29 20:39:49 +0200
commita73415584c9dbf920ec14d26d0b0629cae81b3d5 (patch)
tree52e4bb2911b888f97ba5b3d736235494e89311ce /player/screenshot.c
parent7412257305140e5a21a1acd35f6be546b9295dd5 (diff)
downloadmpv-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/screenshot.c')
-rw-r--r--player/screenshot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/screenshot.c b/player/screenshot.c
index 30eceedafc..1ee58c2196 100644
--- a/player/screenshot.c
+++ b/player/screenshot.c
@@ -199,7 +199,7 @@ static char *create_fname(struct MPContext *mpctx, char *template,
}
case 'p':
case 'P': {
- char *t = mp_format_time(get_current_time(mpctx), fmt == 'P');
+ char *t = mp_format_time(get_playback_time(mpctx), fmt == 'P');
append_filename(&res, t);
talloc_free(t);
break;
@@ -210,7 +210,7 @@ static char *create_fname(struct MPContext *mpctx, char *template,
goto error_exit;
template++;
char fmtstr[] = {'%', tfmt, '\0'};
- char *s = mp_format_time_fmt(fmtstr, get_current_time(mpctx));
+ char *s = mp_format_time_fmt(fmtstr, get_playback_time(mpctx));
if (!s)
goto error_exit;
append_filename(&res, s);