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/loadfile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'player/loadfile.c') diff --git a/player/loadfile.c b/player/loadfile.c index 2490cfa996..b922a46cc9 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -1774,8 +1774,7 @@ struct playlist_entry *mp_next_file(struct MPContext *mpctx, int direction, // Return if all done. void mp_play_files(struct MPContext *mpctx) { - struct stats_ctx *stats = stats_ctx_create(mpctx, mpctx->global, "main"); - stats_register_thread_cputime(stats, "thread"); + stats_register_thread_cputime(mpctx->stats, "thread"); // Wait for all scripts to load before possibly starting playback. if (!mp_clients_all_initialized(mpctx)) { -- cgit v1.2.3