aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-01 04:29:34 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-01 04:29:34 +0000
commitdecce92949d7a35f1e27804df45fa61568e69548 (patch)
treee327e59de5e2a27a33a4acb8388147ecf3ecaed8 /src/main.c
parent9e0cbb30f4986b9ddc6c2238786609c0325cf6af (diff)
downloadmpd-decce92949d7a35f1e27804df45fa61568e69548.tar.gz
mpd-decce92949d7a35f1e27804df45fa61568e69548.tar.xz
mpd-decce92949d7a35f1e27804df45fa61568e69548.zip
nice output of all suffix types supported in version
git-svn-id: https://svn.musicpd.org/mpd/trunk@1276 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c32
1 files changed, 9 insertions, 23 deletions
diff --git a/src/main.c b/src/main.c
index 8073425fe..91258712a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -85,30 +85,16 @@ void usage(char * argv[]) {
}
void version() {
- ERROR("mpd (MPD: Music Player Daemon) %s\n",VERSION);
- ERROR("\n");
- ERROR("Copyright (C) 2003 Warren Dukes <shank@mercury.chem.pitt.edu>\n");
- ERROR("This is free software; see the source for copying conditions. There is NO\n");
- ERROR("warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n");
- ERROR("\n");
- ERROR("Supported formats:\n");
+ LOG("mpd (MPD: Music Player Daemon) %s\n",VERSION);
+ LOG("\n");
+ LOG("Copyright (C) 2003 Warren Dukes <shank@mercury.chem.pitt.edu>\n");
+ LOG("This is free software; see the source for copying conditions. There is NO\n");
+ LOG("warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n");
+ LOG("\n");
+ LOG("Supported formats:\n");
-#ifdef HAVE_AUDIOFILE
- ERROR(" wav");
-#endif
-#ifdef HAVE_MAD
- ERROR(" mp3");
-#endif
-#ifdef HAVE_FAAD
- ERROR(" mp4 aac");
-#endif
-#ifdef HAVE_FLAC
- ERROR(" flac");
-#endif
-#ifdef HAVE_OGG
- ERROR(" ogg");
-#endif
- ERROR("\n");
+ initInputPlugins();
+ printAllInputPluginSuffixes(stdout);
}
void parseOptions(int argc, char ** argv, Options * options) {