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/loadfile.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/loadfile.c')
-rw-r--r-- | player/loadfile.c | 3 |
1 files changed, 1 insertions, 2 deletions
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)) { |