From 01d07326bb97c02a26c76df7b326a99f1a1db4df Mon Sep 17 00:00:00 2001 From: lgb Date: Sun, 3 Jun 2001 01:46:28 +0000 Subject: [PATCH] Removing annoying 'Reading config file ...' message when you run without verbose mode (-v) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@962 b3059339-0415-0410-9bf9-f77b7e298cf2 --- cfgparser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cfgparser.c b/cfgparser.c index ea4a0f3e9f..42f9ee5e77 100644 --- a/cfgparser.c +++ b/cfgparser.c @@ -30,6 +30,8 @@ #include "cfgparser.h" +extern int verbose; + static struct config *config; static int nr_options; /* number of options in 'conf' */ static int parser_mode; /* COMMAND_LINE or CONFIG_FILE */ @@ -251,7 +253,7 @@ int parse_config_file(struct config *conf, char *conffile) return -1; } - printf("Reading config file: %s", conffile); + if (verbose) printf("Reading config file: %s", conffile); if (init_conf(conf, CONFIG_FILE) == -1) { ret = -1;