summaryrefslogtreecommitdiffstats
path: root/player/main.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-04 15:44:37 +0100
committerwm4 <wm4@nowhere>2015-11-04 21:49:54 +0100
commit3ad03f6673b3b1e56020994f90c8cde9f8932b6c (patch)
treeca0b6c4c1bdd55f7ba826d6cdf60931e4d836400 /player/main.c
parentf00edfd9c57367478927cb58adbbc21e3d62e237 (diff)
downloadmpv-3ad03f6673b3b1e56020994f90c8cde9f8932b6c.tar.bz2
mpv-3ad03f6673b3b1e56020994f90c8cde9f8932b6c.tar.xz
options: handle terminal/logging settings eagerly
Update msg.c state immediately if a terminal or logging setting is set. Until now, this was delayed until mp[v]_initialize() was called. When using the client API, you could easily miss logged error messages, even when logging was initialized early on by calling mpv_request_log_messages(). (Properties can't be used for this either, because properties do not work before mpv_initialize().)
Diffstat (limited to 'player/main.c')
-rw-r--r--player/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/main.c b/player/main.c
index 50281ccf9b..ce438636c3 100644
--- a/player/main.c
+++ b/player/main.c
@@ -351,6 +351,7 @@ struct MPContext *mp_create(void)
mpctx->mconfig->includefunc_ctx = mpctx;
mpctx->mconfig->use_profiles = true;
mpctx->mconfig->is_toplevel = true;
+ mpctx->mconfig->global = mpctx->global;
m_config_parse(mpctx->mconfig, "", bstr0(def_config), NULL, 0);
mpctx->global->opts = mpctx->opts;