From f3c933e5d3501c71e7f38dc62b27096a90090d5e Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 25 Feb 2014 23:59:27 +0100 Subject: options: allow changing options at runtime Allow changing all options at runtime, except some cherry-picked options, which are disabled with M_OPT_FIXED. --- player/command.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'player') 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; } -- cgit v1.2.3