From b17585e636e2ea964d858d7157dcc35e791430c6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 31 Oct 2014 01:01:58 +0100 Subject: player: change framedrop display in the status line Hopefully less confusing, and hopefully doesn't exceed the terminal width in any situation. --- player/osd.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'player/osd.c') diff --git a/player/osd.c b/player/osd.c index 34cf88f63c..2c6863eec8 100644 --- a/player/osd.c +++ b/player/osd.c @@ -229,11 +229,12 @@ static void print_status(struct MPContext *mpctx) { // VO stats if (mpctx->d_video) { - if (mpctx->drop_frame_cnt) - saddf(&line, " SD: %d", mpctx->drop_frame_cnt); int64_t c = vo_get_drop_count(mpctx->video_out); - if (c > 0) - saddf(&line, " D: %"PRId64, c); + if (c > 0 || mpctx->drop_frame_cnt > 0) { + saddf(&line, " Dropped: %"PRId64, c); + if (mpctx->drop_frame_cnt) + saddf(&line, "/%d", mpctx->drop_frame_cnt); + } } } -- cgit v1.2.3