summaryrefslogtreecommitdiffstats
path: root/player/osd.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/osd.c')
-rw-r--r--player/osd.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/player/osd.c b/player/osd.c
index 4efac8e7e9..6fba20468e 100644
--- a/player/osd.c
+++ b/player/osd.c
@@ -39,6 +39,8 @@
#include "demux/demux.h"
#include "sub/osd.h"
+#include "video/out/vo.h"
+
#include "core.h"
#include "command.h"
@@ -219,8 +221,13 @@ void print_status(struct MPContext *mpctx)
#endif
{
// VO stats
- if (mpctx->d_video && mpctx->drop_frame_cnt)
- saddf(&line, " Late: %d", mpctx->drop_frame_cnt);
+ if (mpctx->d_video) {
+ if (mpctx->drop_frame_cnt)
+ saddf(&line, " Late: %d", mpctx->drop_frame_cnt);
+ int64_t c = vo_get_drop_count(mpctx->video_out);
+ if (c > 0)
+ saddf(&line, " D: %"PRId64, c);
+ }
}
float cache = mp_get_cache_percent(mpctx);