1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-18 13:14:36 +00:00
mpv/options
wm4 3e1c0e5853 config: make passing talloc context optional for some functions
Until now, the config functions added various allocations to the user-
provided talloc context. Make it so that they're all under the returned
allocation instead. This allows avoiding having to create an extra
temporary context for some callers, and also avoids adding random memory
leaks by accidentally passing a NULL context.

mp_find_all_config_files() has to be changed not to return a pointer
into the middle array for this to work. Make it add paths in order
(instead of reverse), and then reverse the array entries after that.

Also remove the declarations for the win-specific private functions.
Remove STRNULL(); it's barely needed anymore and the functions are
not called with NULL filenames anymore.
2014-06-26 19:56:45 +02:00
..
m_config.c options: remove some more stuff 2014-06-13 02:18:26 +02:00
m_config.h options: remove a global variable 2014-06-11 00:39:14 +02:00
m_option.c options: remove some more stuff 2014-06-13 02:18:26 +02:00
m_option.h options: remove some more stuff 2014-06-13 02:18:26 +02:00
m_property.c command: redo the property type 2014-06-13 02:11:39 +02:00
m_property.h command: redo the property type 2014-06-13 02:11:39 +02:00
options.c cache: change auto-pause/resume defaults 2014-06-23 01:16:31 +02:00
options.h options: Expose --colormatrix-primaries to the user 2014-06-22 19:01:25 +02:00
parse_commandline.c options: fix "-" (stdin) input 2014-05-06 01:06:07 +02:00
parse_commandline.h msg: remove global state 2013-12-21 23:11:12 +01:00
parse_configfile.c options: remove a global variable 2014-06-11 00:39:14 +02:00
parse_configfile.h encode: don't apply default config options 2014-04-19 22:05:17 +02:00
path.c config: make passing talloc context optional for some functions 2014-06-26 19:56:45 +02:00
path.h Basic xdg directory implementation 2014-06-26 19:37:25 +02:00