summaryrefslogtreecommitdiffstats
path: root/cfgparser.c
diff options
context:
space:
mode:
authorlgb <lgb@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-03 01:46:28 +0000
committerlgb <lgb@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-03 01:46:28 +0000
commit01d07326bb97c02a26c76df7b326a99f1a1db4df (patch)
treeb0eb014c34fbd25c3c02d3c40cdeed1abff97fd4 /cfgparser.c
parent7bbe7c90beac199a8553111a8b4121ce3b04c705 (diff)
downloadmpv-01d07326bb97c02a26c76df7b326a99f1a1db4df.tar.bz2
mpv-01d07326bb97c02a26c76df7b326a99f1a1db4df.tar.xz
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
Diffstat (limited to 'cfgparser.c')
-rw-r--r--cfgparser.c4
1 files changed, 3 insertions, 1 deletions
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;