summaryrefslogtreecommitdiffstats
path: root/common/msg_control.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-04-23 21:08:19 +0200
committerwm4 <wm4@nowhere>2015-04-23 21:08:19 +0200
commit91f6f2bf11af3705e55f16fef6379f4b2092a19d (patch)
tree9afcd70853587d1c7d0bc1fbd094ae8baf7fb2aa /common/msg_control.h
parentb98949c72cc5fdf6e4c19aa06148f888961ad36b (diff)
downloadmpv-91f6f2bf11af3705e55f16fef6379f4b2092a19d.tar.bz2
mpv-91f6f2bf11af3705e55f16fef6379f4b2092a19d.tar.xz
options: remove unneeded hack from command line parser
This was traditionally needed to silence terminal output from errors during command line parsing preparsing. Preparsing is done so that options controlling the terminal and config files are parsed and applied first, with a second command line parsing pass applying all other options, _and_ printing error messages for the preparsed ones. But the hack silencing log output during the preparse pass is actually not needed anymore, since the terminal is enabled only after preparsing is finished. update_logging() in main.c does this. So as long as update_logging() is called before m_config_preparse_command_line(), this will work.
Diffstat (limited to 'common/msg_control.h')
-rw-r--r--common/msg_control.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/common/msg_control.h b/common/msg_control.h
index 2e1a4ec6bd..c26a557c9e 100644
--- a/common/msg_control.h
+++ b/common/msg_control.h
@@ -7,7 +7,6 @@ struct mpv_global;
void mp_msg_init(struct mpv_global *global);
void mp_msg_uninit(struct mpv_global *global);
void mp_msg_update_msglevels(struct mpv_global *global);
-void mp_msg_mute(struct mpv_global *global, bool mute);
void mp_msg_force_stderr(struct mpv_global *global, bool force_stderr);
bool mp_msg_has_status_line(struct mpv_global *global);