summaryrefslogtreecommitdiffstats
path: root/options/m_config.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-25 20:25:20 +0100
committerwm4 <wm4@nowhere>2019-11-25 20:29:43 +0100
commit7c6570402bb203a1f1deb5b76807a9c021f47e82 (patch)
tree3e1e8411dba9fe8469ca9c9aedddb6721b59cb33 /options/m_config.c
parent78bb1586d34bcd0cf89267d9447a9cef6ef29761 (diff)
downloadmpv-7c6570402bb203a1f1deb5b76807a9c021f47e82.tar.bz2
mpv-7c6570402bb203a1f1deb5b76807a9c021f47e82.tar.xz
options: remove options-to-property bridge
The previous bunch of commits made this unnecessary, so this should be a purely internal change with no user impact. This may or may not open the way to future improvements. Even if not, at least the property/option interaction should now be much less buggy.
Diffstat (limited to 'options/m_config.c')
-rw-r--r--options/m_config.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/options/m_config.c b/options/m_config.c
index 3fe8a67235..46b67a774f 100644
--- a/options/m_config.c
+++ b/options/m_config.c
@@ -814,9 +814,9 @@ static int m_config_handle_special_options(struct m_config *config,
return M_OPT_UNKNOWN;
}
-int m_config_set_option_raw_direct(struct m_config *config,
- struct m_config_option *co,
- void *data, int flags)
+int m_config_set_option_raw(struct m_config *config,
+ struct m_config_option *co,
+ void *data, int flags)
{
if (!co)
return M_OPT_UNKNOWN;
@@ -842,24 +842,6 @@ int m_config_set_option_raw_direct(struct m_config *config,
return 0;
}
-int m_config_set_option_raw(struct m_config *config, struct m_config_option *co,
- void *data, int flags)
-{
- if (!co)
- return M_OPT_UNKNOWN;
-
- if (config->option_set_callback) {
- int r = handle_set_opt_flags(config, co, flags);
- if (r <= 1)
- return r;
-
- return config->option_set_callback(config->option_set_callback_cb,
- co, data, flags);
- } else {
- return m_config_set_option_raw_direct(config, co, data, flags);
- }
-}
-
// Handle CLI exceptions to option handling.
// Used to turn "--no-foo" into "--foo=no".
// It also handles looking up "--vf-add" as "--vf".