summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-25 23:59:27 +0100
committerwm4 <wm4@nowhere>2014-02-25 23:59:27 +0100
commitf3c933e5d3501c71e7f38dc62b27096a90090d5e (patch)
tree04785087045a348df4e63c8588b3573bfeec51ad /player/command.c
parent279bd8db1f16953d6c99293625440f184967a534 (diff)
downloadmpv-f3c933e5d3501c71e7f38dc62b27096a90090d5e.tar.bz2
mpv-f3c933e5d3501c71e7f38dc62b27096a90090d5e.tar.xz
options: allow changing options at runtime
Allow changing all options at runtime, except some cherry-picked options, which are disabled with M_OPT_FIXED.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/player/command.c b/player/command.c
index 11a5422add..feaf4788d2 100644
--- a/player/command.c
+++ b/player/command.c
@@ -1991,9 +1991,7 @@ static int access_options(struct m_property_action_arg *ka, MPContext *mpctx)
m_option_copy(opt->opt, ka->arg, opt->data);
return M_PROPERTY_OK;
case M_PROPERTY_SET:
- if (!(mpctx->initialized_flags & INITIALIZED_PLAYBACK) &&
- !(opt->opt->flags & (M_OPT_PRE_PARSE | M_OPT_GLOBAL)))
- {
+ if (!(opt->opt->flags & (M_OPT_PRE_PARSE | M_OPT_FIXED))) {
m_option_copy(opt->opt, opt->data, ka->arg);
return M_PROPERTY_OK;
}