1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 08:12:17 +00:00
mpv/options
wm4 a3e8ff624c options: take care of propertly updating options on runtime changes
All option write accesses are now put through the property interface,
which means runtime option value verification and runtime updates are
applied. This is done even for command line arguments and config files.

This has many subtle and not-so-subtle consequences. The potential for
unintended and intended subtle or not-subtle behavior changes is very
large.

Architecturally, this is us literally jumping through hoops. It really
should work the other way around, with options being able to have
callbacks for value verification and applying runtime updates. But this
would require rewriting the entirety of command.c. This change is more
practical, and if anything will at least allow incremental changes.

Some options are too incompatible for this to work - these are excluded
with an explicit blacklist.

This change fixes many issues caused by the mismatch between properties
and options. For example, this fixes #3281.
2016-09-17 20:48:22 +02:00
..
m_config.c options: take care of propertly updating options on runtime changes 2016-09-17 20:48:22 +02:00
m_config.h options: take care of propertly updating options on runtime changes 2016-09-17 20:48:22 +02:00
m_option.c options: simplify M_OPT_EXIT 2016-09-17 18:07:40 +02:00
m_option.h options: simplify M_OPT_EXIT 2016-09-17 18:07:40 +02:00
m_property.c command: add options to property list 2016-09-01 20:00:43 +02:00
m_property.h command: add options to property list 2016-09-01 20:00:43 +02:00
options.c options: kill M_OPT_GLOBAL flag 2016-09-17 17:04:13 +02:00
options.h stream_dvd, stream_dvdnav: remove weird option parsing stuff 2016-09-08 21:46:48 +02:00
parse_commandline.c options: simplify M_OPT_EXIT 2016-09-17 18:07:40 +02:00
parse_commandline.h Update license headers 2015-04-13 12:10:01 +02:00
parse_configfile.c config: allow profile forward-references in default profile 2016-09-02 21:21:47 +02:00
parse_configfile.h Update license headers 2015-04-13 12:10:01 +02:00
path.c mpv_talloc.h: rename from talloc.h 2016-01-11 21:05:55 +01:00
path.h player: make watch later/resume work when "playing" directories 2016-01-06 22:40:55 +01:00