command: rename "option-flags" property to "option-info"

This commit is contained in:
wm4
2014-11-13 17:27:31 +01:00
parent 13033ce2c4
commit 71168e740e
2 changed files with 6 additions and 6 deletions

View File

@@ -1442,13 +1442,13 @@ Property list
access the local value, and the ``old`` value, which will be restored on
end of playback, can not be read or written until end of playback.)
``option-flags/<name>``
Minor additional per-option information.
``option-info/<name>``
Additional per-option information.
This has a number of sub-properties. Replace ``<name>`` with the name of
a top-level option.
``option-flags/<name>/set-from-commandline``
``option-info/<name>/set-from-commandline``
Return ``yes`` if the option was set from the mpv command line,
``no`` otherwise. What this is set to if the option is e.g. changed

View File

@@ -3003,8 +3003,8 @@ static int mp_property_local_options(void *ctx, struct m_property *prop,
return access_option_list(action, arg, true, mpctx);
}
static int mp_property_option_flags(void *ctx, struct m_property *prop,
int action, void *arg)
static int mp_property_option_info(void *ctx, struct m_property *prop,
int action, void *arg)
{
MPContext *mpctx = ctx;
switch (action) {
@@ -3242,7 +3242,7 @@ static const struct m_property mp_properties[] = {
{"options", mp_property_options},
{"file-local-options", mp_property_local_options},
{"option-flags", mp_property_option_flags},
{"option-info", mp_property_option_info},
{"property-list", mp_property_list},
{0},