mirror of https://github.com/mpv-player/mpv
26029cfbb0
Previously, using m_option_type_alias required that the alias have the full name of the option value. This is limited if you are reusing the same opts struct in different sub options. Fix this by add an additional field to m_option to signal whether or not prefixes should be taken into account for the alias option. Instead of blindly using whatever is stored in opt->priv as the name, we can construct the desired option name for either case (using the prefix or not). |
||
---|---|---|
.. | ||
m_config.h | ||
m_config_core.c | ||
m_config_core.h | ||
m_config_frontend.c | ||
m_config_frontend.h | ||
m_option.c | ||
m_option.h | ||
m_property.c | ||
m_property.h | ||
options.c | ||
options.h | ||
parse_commandline.c | ||
parse_commandline.h | ||
parse_configfile.c | ||
parse_configfile.h | ||
path.c | ||
path.h |