summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-24 20:41:07 +0200
committerwm4 <wm4@nowhere>2016-09-24 20:41:07 +0200
commit733218b2331bfcf0d91be62418ab63a217e1108e (patch)
treeebc35f1538d238d9cf867df98a310bb0de2a2066 /options
parent88f10ec84f116bca4580a454b711dbaec7dfd04f (diff)
downloadmpv-733218b2331bfcf0d91be62418ab63a217e1108e.tar.bz2
mpv-733218b2331bfcf0d91be62418ab63a217e1108e.tar.xz
options: do not mark --profile/--include as M_OPT_FIXED
The intention of M_OPT_FIXED is to make options not runtime-changeable, so trying to set them at runtime will always error. This is not wanted for --profile and --include, for which there is no reason to block them at runtime. Fixes #3581.
Diffstat (limited to 'options')
-rw-r--r--options/options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/options/options.c b/options/options.c
index bbe74ff8a2..a91775ddf4 100644
--- a/options/options.c
+++ b/options/options.c
@@ -243,8 +243,8 @@ const m_option_t mp_opts[] = {
{"}", CONF_TYPE_STORE, CONF_NOCFG | M_OPT_FIXED, .offset = -1},
// handled in m_config.c
- { "include", CONF_TYPE_STRING, M_OPT_FIXED | M_OPT_FILE, .offset = -1},
- { "profile", CONF_TYPE_STRING_LIST, M_OPT_FIXED, .offset = -1},
+ { "include", CONF_TYPE_STRING, M_OPT_FILE, .offset = -1},
+ { "profile", CONF_TYPE_STRING_LIST, 0, .offset = -1},
{ "show-profile", CONF_TYPE_STRING, CONF_NOCFG | M_OPT_FIXED, .offset = -1},
{ "list-options", CONF_TYPE_STORE, CONF_NOCFG | M_OPT_FIXED, .offset = -1},
OPT_FLAG("list-properties", property_print_help,