summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-18 21:21:57 +0100
committerwm4 <wm4@nowhere>2015-11-18 21:21:57 +0100
commit58caf577f1949655e2eeaf3d7c565eedb6ee2805 (patch)
tree28611d70340297bf229d66a3e84bb7156b37fe53 /player
parent76fcef618b2f4e3ea7792866ed8eb74db356e152 (diff)
downloadmpv-58caf577f1949655e2eeaf3d7c565eedb6ee2805.tar.bz2
mpv-58caf577f1949655e2eeaf3d7c565eedb6ee2805.tar.xz
player: replace mistimed-frame-count with vsync-ratio on status line
I think this is much more informative. Maybe.
Diffstat (limited to 'player')
-rw-r--r--player/osd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/player/osd.c b/player/osd.c
index e26439432d..353c301942 100644
--- a/player/osd.c
+++ b/player/osd.c
@@ -235,8 +235,10 @@ static void print_status(struct MPContext *mpctx)
// VO stats
if (mpctx->d_video) {
if (mpctx->display_sync_active) {
- saddf(&line, " DS: %d/%"PRId64, mpctx->mistimed_frames_total,
+ char *r = mp_property_expand_string(mpctx, "${vsync-ratio}");
+ saddf(&line, " DS: %s/%"PRId64, r,
vo_get_delayed_count(mpctx->video_out));
+ talloc_free(r);
}
int64_t c = vo_get_drop_count(mpctx->video_out);
if (c > 0 || mpctx->dropped_frames_total > 0) {