summaryrefslogtreecommitdiffstats
path: root/player/loadfile.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-22 20:35:38 +0200
committerwm4 <wm4@nowhere>2016-09-22 20:57:05 +0200
commit6fe83fdc339aad0b5ddadbe55d25c57bc490640e (patch)
tree09a79cb154157f12a50f41f1234cc865b6035510 /player/loadfile.c
parent6ba2bbd09082232e3bf73af79b39389c850757fc (diff)
downloadmpv-6fe83fdc339aad0b5ddadbe55d25c57bc490640e.tar.bz2
mpv-6fe83fdc339aad0b5ddadbe55d25c57bc490640e.tar.xz
player: some M_SETOPT_RUNTIME cleanups
Add this flag where needed. You shouldn't be able to set e.g. config-dir in these situations. Remove the mpctx->initialized check from the property/option bridge, since it's in use strictly only after initialization. Likewise, the apply-profile command doesn't need to check this.
Diffstat (limited to 'player/loadfile.c')
-rw-r--r--player/loadfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index 9fdd38127f..ba0e0bd257 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -770,7 +770,7 @@ static void load_per_file_options(m_config_t *conf,
{
for (int n = 0; n < params_count; n++) {
m_config_set_option_ext(conf, params[n].name, params[n].value,
- M_SETOPT_BACKUP);
+ M_SETOPT_RUNTIME | M_SETOPT_BACKUP);
}
}