summaryrefslogtreecommitdiffstats
path: root/player/main.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-04-10 00:55:39 +0200
committerwm4 <wm4@nowhere>2020-04-10 00:55:39 +0200
commita2846faa321fdfd57af01a21c2df08e5b5ffb6ca (patch)
treeb21c659aee287654d350a9e1f47f558baa0fc1ac /player/main.c
parent437a46d443eac95ceeff174ce3d5b4bdd42f1834 (diff)
downloadmpv-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/main.c')
-rw-r--r--player/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/player/main.c b/player/main.c
index b5695a663a..25bf22ef5a 100644
--- a/player/main.c
+++ b/player/main.c
@@ -283,6 +283,8 @@ struct MPContext *mp_create(void)
mpctx->log = mp_log_new(mpctx, mpctx->global->log, "!cplayer");
mpctx->statusline = mp_log_new(mpctx, mpctx->log, "!statusline");
+ mpctx->stats = stats_ctx_create(mpctx, mpctx->global, "main");
+
// Create the config context and register the options
mpctx->mconfig = m_config_new(mpctx, mpctx->log, &mp_opt_root);
mpctx->opts = mpctx->mconfig->optstruct;