1
mirror of https://github.com/mpv-player/mpv synced 2024-10-22 08:51:57 +02:00

options: handle -v during pre-parsing command line

Otherwise -v is honored too late, and some output will be missing. In
particular, this prevented printing of the libav* library versions.
This commit is contained in:
wm4 2012-12-12 23:02:03 +01:00
parent 962a97a2db
commit 306136a287

View File

@ -255,11 +255,6 @@ bool m_config_parse_mp_command_line(m_config_t *config, struct playlist *files,
continue;
}
if (bstrcmp0(p.arg, "v") == 0) {
verbose++;
continue;
}
if (mode == LOCAL) {
MP_TARRAY_APPEND(NULL, local_params, local_params_count,
(struct playlist_param) {p.arg, p.param});
@ -351,6 +346,8 @@ void m_config_preparse_command_line(m_config_t *config, int argc, char **argv)
// Option parsing errors will be handled later as well.
if (p.mp_opt->flags & M_OPT_PRE_PARSE)
m_config_set_option(config, p.arg, p.param);
if (bstrcmp0(p.arg, "v") == 0)
verbose++;
}
}