diff options
author | wm4 <wm4@nowhere> | 2014-10-31 01:01:58 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-31 01:01:58 +0100 |
commit | b17585e636e2ea964d858d7157dcc35e791430c6 (patch) | |
tree | 35ec3bf348ae342424338b68b9346284a828199c /player | |
parent | 6ddd2b8e0348e311eb883511c5cc4d5598bda086 (diff) | |
download | mpv-b17585e636e2ea964d858d7157dcc35e791430c6.tar.bz2 mpv-b17585e636e2ea964d858d7157dcc35e791430c6.tar.xz |
player: change framedrop display in the status line
Hopefully less confusing, and hopefully doesn't exceed the terminal
width in any situation.
Diffstat (limited to 'player')
-rw-r--r-- | player/osd.c | 9 |
1 files changed, 5 insertions, 4 deletions
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); + } } } |