1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-19 05:41:16 +00:00
mpv/options
Dudemanguy bc28f7693d m_option: add a force_update boolean
mpv's core does not propagate option notifications unless they actually
change to the rest of the player. Most of the time, this makes perfect
sense. If the user sets fullscreen multiple times, there's no reason to
care about anything other than the change in state. However, there are
certain options where it makes sense to always broadcast a notification
even if the value doesn't change. For example, consider the window-scale
case. A user may set window-scale to some value, resize the window
further through some other means (such as mouse resizing) and then want
to set the window-scale again to the same value as earlier. The
window-scale value did not change from before so no notification is sent
and nothing happens even though it is desirable and expected that it
operates again.

This was solved by making the current-window-scale property writable a
few years ago, but actually the easier solution is to just always force
the option to update on any write. For the big callback, the needed
changes are trivial. Unfortunately, it requires a hot mess in order to
have this work with the m_config_cache_update APIs. Spooky stuff in
there, but it does send the notification now.
2024-04-18 17:40:16 +00:00
..
m_config_core.c m_option: add a force_update boolean 2024-04-18 17:40:16 +00:00
m_config_core.h m_config_core: remove mp_read_option_raw 2023-09-22 14:20:38 +00:00
m_config_frontend.c m_property: add > for fixed precision floating-point expansion 2024-03-21 03:50:11 +01:00
m_config_frontend.h various: sort some standard headers 2023-10-20 21:31:09 +02:00
m_config.h options/m_config: fix no newline at end of file 2024-03-19 08:58:18 +01:00
m_option.c m_option: change confusing error messages for obj_settings_list 2024-04-18 16:28:21 +02:00
m_option.h m_option: add a force_update boolean 2024-04-18 17:40:16 +00:00
m_property.c m_property: add > for fixed precision floating-point expansion 2024-03-21 03:50:11 +01:00
m_property.h m_property: add > for fixed precision floating-point expansion 2024-03-21 03:50:11 +01:00
options.c sd_ass: add sub-vsfilter-bidi-compat to enable vsfilter bidi compat 2024-04-18 00:14:44 +02:00
options.h sd_ass: add sub-vsfilter-bidi-compat to enable vsfilter bidi compat 2024-04-18 00:14:44 +02:00
parse_commandline.c player: change insert_next to insert_at 2024-02-26 02:03:21 +00:00
parse_commandline.h player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
parse_configfile.c options: read config file as stream 2023-04-29 22:34:54 +00:00
parse_configfile.h options: read config file as stream 2023-04-29 22:34:54 +00:00
path.c path: don't load any files if --no-config is passed 2024-03-11 21:29:46 +01:00
path.h options/path: move path utility functions to misc/path_utils 2024-02-23 21:35:57 +01:00