1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 14:52:43 +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
parse_commandline.h
parse_configfile.c
parse_configfile.h
path.c mpv_talloc.h: rename from talloc.h 2016-01-11 21:05:55 +01:00
path.h