From 6fe83fdc339aad0b5ddadbe55d25c57bc490640e Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 22 Sep 2016 20:35:38 +0200 Subject: 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. --- player/loadfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/loadfile.c') 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); } } -- cgit v1.2.3