summaryrefslogtreecommitdiffstats
path: root/player/osd.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-08-12 22:26:35 +0200
committerwm4 <wm4@nowhere>2015-08-12 22:26:35 +0200
commita17d5e4bddab412488fea1bd7f7d56034c5a5d7d (patch)
treee073f3c6ff9d90041160ffa24a5fdca0d135c8f6 /player/osd.c
parent828881816acbfae0451e038c45e63b6784681daa (diff)
downloadmpv-a17d5e4bddab412488fea1bd7f7d56034c5a5d7d.tar.bz2
mpv-a17d5e4bddab412488fea1bd7f7d56034c5a5d7d.tar.xz
player: use OSD formattin for DS on the terminal status line
Diffstat (limited to 'player/osd.c')
-rw-r--r--player/osd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/player/osd.c b/player/osd.c
index ace465b18d..8a000862eb 100644
--- a/player/osd.c
+++ b/player/osd.c
@@ -226,7 +226,11 @@ static void print_status(struct MPContext *mpctx)
// VO stats
if (mpctx->d_video) {
if (mpctx->display_sync_active) {
- saddf(&line, " DS: %f", mpctx->speed_factor_a);
+ char *f =
+ mp_property_expand_string(mpctx, "${audio-speed-correction}");
+ if (f)
+ saddf(&line, " DS: %s", f);
+ talloc_free(f);
int64_t m = vo_get_missed_count(mpctx->video_out);
if (m > 0)
saddf(&line, " Missed: %"PRId64, m);