1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-30 15:29:56 +00:00
mpv/options
wm4 423e53ba0b m_config: introduce basic mechanism to synchronize global option updates
The way option runtime changes are handled is pretty bad in the current
codebase. There's a big option struct (MPOpts), which contains almost
everything, and for which no synchronization mechanism exists. This was
handled by either making some options read-only after initialization,
duplicating the option struct, using sub-options (in the VO), and so on.

Introduce a mechanism that creates a copy of the global options (or
parts of it), and provides a well-defined way to update them in a
thread-safe way.

Most code can remain the same, just that all the component glue code has
to explicitly make use of it first.

There is still lots of room for improvement. For example, the update
mechanism could be better.
2016-09-02 15:50:40 +02:00
..
m_config.c m_config: introduce basic mechanism to synchronize global option updates 2016-09-02 15:50:40 +02:00
m_config.h m_config: introduce basic mechanism to synchronize global option updates 2016-09-02 15:50:40 +02:00
m_option.c vo, ao: disable positional parameter suboptions 2016-09-01 14:21:32 +02:00
m_option.h command: add options to property list 2016-09-01 20:00:43 +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 command: fix or document some property/option consistency issues 2016-09-01 20:57:33 +02:00
options.h command: add options to property list 2016-09-01 20:00:43 +02:00
parse_commandline.c options: remove unneeded hack from command line parser 2015-04-23 21:08:19 +02:00
parse_commandline.h Update license headers 2015-04-13 12:10:01 +02:00
parse_configfile.c options: clarify quoting for option values starting with % 2015-04-17 16:06:43 +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