fix minor bug in shout code (seting ao->open = 1 when failing to initEncoder())

git-svn-id: https://svn.musicpd.org/mpd/trunk@2431 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-10-31 15:02:29 +00:00
parent aba67249cb
commit 0cf6a8c96a

View File

@ -370,7 +370,7 @@ static int shout_openShoutConn(AudioOutput * audioOutput) {
if(initEncoder(sd) < 0) {
shout_close(sd->shoutConn);
audioOutput->open = 1;
audioOutput->open = 0;
return -1;
}