diff options
author | wm4 <wm4@nowhere> | 2013-12-18 19:04:30 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-20 21:07:57 +0100 |
commit | 6a8fc3f5e38f93c36d18ad8407d4f3f345d893db (patch) | |
tree | ad2567044e98efaad555366b2b5a2bf010e815ee /player/main.c | |
parent | 5162c2709ee9bfce15750fa47744861c50351ae5 (diff) | |
download | mpv-6a8fc3f5e38f93c36d18ad8407d4f3f345d893db.tar.bz2 mpv-6a8fc3f5e38f93c36d18ad8407d4f3f345d893db.tar.xz |
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.
Diffstat (limited to 'player/main.c')
-rw-r--r-- | player/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/player/main.c b/player/main.c index 7f578a2c4b..acff77f94d 100644 --- a/player/main.c +++ b/player/main.c @@ -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); |