diff options
author | wm4 <wm4@nowhere> | 2020-04-10 00:55:39 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-04-10 00:55:39 +0200 |
commit | a2846faa321fdfd57af01a21c2df08e5b5ffb6ca (patch) | |
tree | b21c659aee287654d350a9e1f47f558baa0fc1ac /player/playloop.c | |
parent | 437a46d443eac95ceeff174ce3d5b4bdd42f1834 (diff) | |
download | mpv-a2846faa321fdfd57af01a21c2df08e5b5ffb6ca.tar.bz2 mpv-a2846faa321fdfd57af01a21c2df08e5b5ffb6ca.tar.xz |
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.
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"); |