diff --git a/player/main.c b/player/main.c index cecdc15392..678ef5a5a1 100644 --- a/player/main.c +++ b/player/main.c @@ -399,9 +399,6 @@ int mp_initialize(struct MPContext *mpctx, char **options) mp_print_version(mpctx->log, false); - if (opts->operation_mode == 1) - m_config_set_profile(mpctx->mconfig, "pseudo-gui", M_SETOPT_NO_OVERWRITE); - mp_parse_cfgfiles(mpctx); if (options) { @@ -411,6 +408,9 @@ int mp_initialize(struct MPContext *mpctx, char **options) return r == M_OPT_EXIT ? -2 : -1; } + if (opts->operation_mode == 1) + m_config_set_profile(mpctx->mconfig, "pseudo-gui", M_SETOPT_NO_OVERWRITE); + mp_get_resume_defaults(mpctx); // From this point on, all mpctx members are initialized.