From a2846faa321fdfd57af01a21c2df08e5b5ffb6ca Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 10 Apr 2020 00:55:39 +0200 Subject: player, stats: more silly debug stuff In addition to stats.c being gross, I don't think master branch code should be littered with debug code. But it's a helpful abomination. --- player/playloop.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'player/playloop.c') diff --git a/player/playloop.c b/player/playloop.c index a103de59f1..c2e9f5efef 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -29,6 +29,7 @@ #include "common/common.h" #include "common/encode.h" #include "common/recorder.h" +#include "common/stats.h" #include "filters/f_decoder_wrapper.h" #include "options/m_config_frontend.h" #include "options/m_property.h" @@ -57,6 +58,8 @@ void mp_wait_events(struct MPContext *mpctx) { mp_client_send_property_changes(mpctx); + stats_event(mpctx->stats, "iterations"); + bool sleeping = mpctx->sleeptime > 0; if (sleeping) MP_STATS(mpctx, "start sleep"); -- cgit v1.2.3