bad shank, don't set ao->open in openShoutConn(), bad shank

this should fix a few bugs, possibly the memory leak

git-svn-id: https://svn.musicpd.org/mpd/trunk@2442 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-11-01 13:21:10 +00:00
parent fab2bef87a
commit 8cb147764b
1 changed files with 6 additions and 3 deletions

View File

@ -364,13 +364,11 @@ static int shout_openShoutConn(AudioOutput * audioOutput) {
ERROR("problem opening connection to shout server: %s\n",
shout_get_error(sd->shoutConn));
audioOutput->open = 0;
return -1;
}
if(initEncoder(sd) < 0) {
shout_close(sd->shoutConn);
audioOutput->open = 0;
return -1;
}
@ -414,7 +412,12 @@ static int shout_openDevice(AudioOutput * audioOutput,
if(sd->opened) return 0;
return shout_openShoutConn(audioOutput);
if(shout_openShoutConn(audioOutput) < 0) {
audioOutput->open = 1;
return -1;
}
return 0;
}
static void shout_convertAudioFormat(ShoutData * sd, char ** chunkArgPtr,