From d26b5daf3ed32136540d39614afe7ef631a1319f Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 4 Jan 2020 21:12:29 +0100 Subject: command: make sub-step command actually apply sub-delay change properly The change was not propagated to the OSD/subtitle code, since that still uses an "old" method. Change it so that the propagation is actually performed. (One could argue the OSD/subtitle code should use other ways to update the options, but that would probably be more effort for now.) --- options/m_config.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'options/m_config.h') diff --git a/options/m_config.h b/options/m_config.h index 25d26e05ee..862d40c3a3 100644 --- a/options/m_config.h +++ b/options/m_config.h @@ -196,6 +196,10 @@ int m_config_option_requires_param(struct m_config *config, bstr name); // This will force a self-notification back to config->option_change_callback. void m_config_notify_change_opt_ptr(struct m_config *config, void *ptr); +// Exactly like m_config_notify_change_opt_ptr(), but the option change callback +// (config->option_change_callback()) is invoked with self_update=false, if at all. +void m_config_notify_change_opt_ptr_notify(struct m_config *config, void *ptr); + // Return all (visible) option names as NULL terminated string list. char **m_config_list_options(void *ta_parent, const struct m_config *config); -- cgit v1.2.3