summaryrefslogtreecommitdiffstats
path: root/player/main.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-19 19:56:40 +0200
committerwm4 <wm4@nowhere>2016-09-19 19:56:40 +0200
commitce65ea3345b657b624f28587bd7f31466ac145a2 (patch)
treea0777d3875a59091f6a576727a56c22f5853e8f4 /player/main.c
parentb62634c051e5657d60394a10d7ae8a8707f3bcc7 (diff)
downloadmpv-ce65ea3345b657b624f28587bd7f31466ac145a2.tar.bz2
mpv-ce65ea3345b657b624f28587bd7f31466ac145a2.tar.xz
player: make --log-file and --dump-stats freely settable at runtime
Same deal as with the previous commit. We use the file paths to decide when we should attempt to reopen them.
Diffstat (limited to 'player/main.c')
-rw-r--r--player/main.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/player/main.c b/player/main.c
index afdb6d1e5a..c1ee73b5cf 100644
--- a/player/main.c
+++ b/player/main.c
@@ -432,10 +432,6 @@ int mp_initialize(struct MPContext *mpctx, char **options)
return -1;
}
- if (opts->dump_stats && opts->dump_stats[0]) {
- if (mp_msg_open_stats_file(mpctx->global, opts->dump_stats) < 0)
- MP_ERR(mpctx, "Failed to open stats file '%s'\n", opts->dump_stats);
- }
MP_STATS(mpctx, "start init");
if (!mpctx->playlist->first && !opts->player_idle_mode)