mpv/options
wm4 b430c886aa client API: make mpv_set_option set options natively
This should fix some issues, such as not being able to set the
"no-video" option with MPV_FORMAT_FLAG.

Note that this changes semantics a bit. Now setting an option strictly
overwrite it, even if the corresponding command line option does not.
For example, if we change --sub to append by default, then setting the
"sub" option via the client API would still never append. (Oddly, this
also applies to --vf-add, which will overwrite the old value when using
the client API.)

I'm doing this because there's no proper separation between the command
line parser and setting an option using the MPV_FORMAT_STRING format.
Maybe the solution to this mess would be adding format aware code (i.e.
m_option_set_node) to every option type, and falling back to strings
only if needed - but this would mean that you couldn't set e.g. an
integer option using MPV_FORMAT_STRING, which doesn't seem to be ideal
either.

In conclusion, the current approach seems to be most robust, but I'm
open to suggestions should someone find that these semantics are a
problem.
2014-04-22 01:42:57 +02:00
..
m_config.c client API: make mpv_set_option set options natively 2014-04-22 01:42:57 +02:00
m_config.h client API: make mpv_set_option set options natively 2014-04-22 01:42:57 +02:00
m_option.c options: don't allow --no-foo=yes 2014-04-14 20:51:27 +02:00
m_option.h
m_property.c command: remove extended information from --list-properties 2014-04-11 01:27:57 +02:00
m_property.h command: add helper function to split property paths 2014-03-30 13:41:03 +02:00
options.c encode: don't apply default config options 2014-04-19 22:05:17 +02:00
options.h player: add a --loop-file option 2014-04-17 23:55:42 +02:00
parse_commandline.c build: glob() is always available 2014-04-22 01:42:57 +02:00
parse_commandline.h
parse_configfile.c encode: don't apply default config options 2014-04-19 22:05:17 +02:00
parse_configfile.h encode: don't apply default config options 2014-04-19 22:05:17 +02:00
path.c
path.h