command: add property indicating per-file options

Fixes #2165, more or less.
This commit is contained in:
wm4
2015-07-23 22:59:04 +02:00
parent 86a60a4dd2
commit 3cbf68b470
5 changed files with 11 additions and 0 deletions

View File

@@ -3261,6 +3261,7 @@ static int mp_property_option_info(void *ctx, struct m_property *prop,
{"name", SUB_PROP_STR(co->name)},
{"type", SUB_PROP_STR(opt->type->name)},
{"set-from-commandline", SUB_PROP_FLAG(co->is_set_from_cmdline)},
{"set-locally", SUB_PROP_FLAG(co->is_set_locally)},
{"default-value", *opt, def},
{"min", SUB_PROP_DOUBLE(opt->min),
.unavailable = !(has_minmax && (opt->flags & M_OPT_MIN))},