mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
command: add property indicating per-file options
Fixes #2165, more or less.
This commit is contained in:
@@ -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))},
|
||||
|
||||
Reference in New Issue
Block a user