msg: change --msglevel, reduce legacy glue

Basically, reimplement --msglevel. Instead of making the new msg code
use the legacy code, make the legacy code use the reimplemented
functionality.

The handling of the deprecated --identify switch changes. It temporarily
stops working; this will be fixed in later commits.

The actual sub-options syntax (like --msglevel-vo=...) goes away, but I
bet nobody knew about this or used this anyway.
This commit is contained in:
wm4
2013-12-18 19:04:30 +01:00
parent 5162c2709e
commit 6a8fc3f5e3
9 changed files with 190 additions and 140 deletions

View File

@@ -338,6 +338,7 @@ static int mpv_main(int argc, char *argv[])
// Preparse the command line
m_config_preparse_command_line(mpctx->mconfig, argc, argv);
mp_msg_update_msglevels(mpctx->global);
mp_print_version(false);
@@ -354,6 +355,8 @@ static int mpv_main(int argc, char *argv[])
}
}
mp_msg_update_msglevels(mpctx->global);
if (handle_help_options(mpctx))
exit_player(mpctx, EXIT_NONE);