aboutsummaryrefslogtreecommitdiffhomepage
path: root/options/parse_commandline.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2017-07-02 13:00:22 +0200
committerGravatar wm4 <wm4@nowhere>2017-07-02 13:07:36 +0200
commit3d318071982cc80867098ca5fe2641f31a289ac8 (patch)
treed388d93a5ee37e98b818733bf0e139740a048f1e /options/parse_commandline.c
parent66478cff14faaafb124c9e80f80b6fe0ad38a050 (diff)
m_option: remove redundant indirections
Remove the various redundant m_config_set_option* calls, rename the remaining one to m_config_set_option_cli(), and merge the m_config_parse_option() function.
Diffstat (limited to 'options/parse_commandline.c')
-rw-r--r--options/parse_commandline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/options/parse_commandline.c b/options/parse_commandline.c
index 2eb65e5c8e..b1392ba4e1 100644
--- a/options/parse_commandline.c
+++ b/options/parse_commandline.c
@@ -146,7 +146,7 @@ int m_config_parse_mp_command_line(m_config_t *config, struct playlist *files,
int flags = M_SETOPT_FROM_CMDLINE;
if (mode == LOCAL)
flags |= M_SETOPT_BACKUP | M_SETOPT_CHECK_ONLY;
- int r = m_config_set_option_ext(config, p.arg, p.param, flags);
+ int r = m_config_set_option_cli(config, p.arg, p.param, flags);
if (r == M_OPT_EXIT) {
ret = r;
goto err_out;
@@ -291,7 +291,7 @@ void m_config_preparse_command_line(m_config_t *config, struct mpv_global *globa
// Ignore non-pre-parse options. They will be set later.
// Option parsing errors will be handled later as well.
int flags = M_SETOPT_FROM_CMDLINE | M_SETOPT_PRE_PARSE_ONLY;
- m_config_set_option_ext(config, p.arg, p.param, flags);
+ m_config_set_option_cli(config, p.arg, p.param, flags);
if (bstrcmp0(p.arg, "v") == 0)
opts->verbose++;
}