diff options
author | wm4 <wm4@nowhere> | 2018-05-21 15:49:19 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2018-05-24 19:56:35 +0200 |
commit | 3569857b7580f9037f5168a2e3888a86cc3a85a0 (patch) | |
tree | 271d3a35b844ec1ffa6e2c5a7069ae25f962e831 /player/main.c | |
parent | fe6b2f9103450679a07da44bdad31707b597cd20 (diff) | |
download | mpv-3569857b7580f9037f5168a2e3888a86cc3a85a0.tar.bz2 mpv-3569857b7580f9037f5168a2e3888a86cc3a85a0.tar.xz |
path: don't access global option struct
The path functions need to access the option that forces non-default
config directories. Just add it as a field to mpv_global - it seems
justified. The accessed options were always enforced as immutable after
init, so there's not much of a change.
Diffstat (limited to 'player/main.c')
-rw-r--r-- | player/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/player/main.c b/player/main.c index 5870574844..d94b61230e 100644 --- a/player/main.c +++ b/player/main.c @@ -338,6 +338,7 @@ int mp_initialize(struct MPContext *mpctx, char **options) if (options) m_config_preparse_command_line(mpctx->mconfig, mpctx->global, options); + mp_init_paths(mpctx->global, opts); mp_update_logging(mpctx, true); if (options) { |