mirror of https://github.com/mpv-player/mpv
082b1cdeaa
Setting string options to strings over the m_option fallback (i.e. M_PROPERTY_SET_STRING is called if the option type is CONF_TYPE_STRING) failed. This was because m_option_parse() returns 0. 0 still means success, but the property code tried to be clever, and considered 0 not a success in order to disallow setting flags to an emtpy string (which in turn is allowed, because the command line allows flag options without parameters). Fix this by removing the overly clever code. This could happen when e.g. using the "set" command on options/title (a string option), and also was a problem for the client API. Closes #610. |
||
---|---|---|
.. | ||
m_config.c | ||
m_config.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 |