diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-10-20 20:41:21 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-10-20 20:41:21 +0000 |
commit | 72a7740fd5755d09e13978bde7f729deb43bdd55 (patch) | |
tree | 019f3e630680fabe7cfa5755f1497b142f5f1f34 /src/audioOutput_ao.c | |
parent | eefcf79436c80075fa373e65bf6249ba9b4c9b04 (diff) | |
download | mpd-72a7740fd5755d09e13978bde7f729deb43bdd55.tar.gz mpd-72a7740fd5755d09e13978bde7f729deb43bdd55.tar.xz mpd-72a7740fd5755d09e13978bde7f729deb43bdd55.zip |
shout audioOutput will now connect and disconnect from icecast server
git-svn-id: https://svn.musicpd.org/mpd/trunk@2285 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/audioOutput_ao.c')
-rw-r--r-- | src/audioOutput_ao.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/audioOutput_ao.c b/src/audioOutput_ao.c index 3dafc8e89..95f0f1a98 100644 --- a/src/audioOutput_ao.c +++ b/src/audioOutput_ao.c @@ -56,7 +56,7 @@ static void audioOutputAo_error() { } } -static void audioOutputAo_initDriver(AudioOutput * audioOutput) { +static int audioOutputAo_initDriver(AudioOutput * audioOutput) { ao_info * ai; char * dup; char * stk1; @@ -71,7 +71,7 @@ static void audioOutputAo_initDriver(AudioOutput * audioOutput) { ad->writeSize = strtol((getConf())[CONF_AUDIO_WRITE_SIZE],&test,10); if (*test!='\0') { - ERROR("\"%s\" is not a valid write size", + ERROR("\"%s\" is not a valid write size\n", (getConf())[CONF_AUDIO_WRITE_SIZE]); exit(EXIT_FAILURE); } @@ -133,6 +133,8 @@ static void audioOutputAo_initDriver(AudioOutput * audioOutput) { } } free(dup); + + return 0; } static void freeAoData(AoData * ad) { |