diff options
Diffstat (limited to 'player/playloop.c')
-rw-r--r-- | player/playloop.c | 3 |
1 files changed, 3 insertions, 0 deletions
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"); |