see if this fixes the clients disconnecting issues

git-svn-id: https://svn.musicpd.org/mpd/trunk@2552 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-11-08 21:54:50 +00:00
parent b0e6a06199
commit 9b03731c86

View File

@ -151,13 +151,20 @@ static void convertAudioFormat(AudioOutput * audioOutput, char ** chunkArgPtr,
}
int playAudioOutput(AudioOutput * audioOutput, char * playChunk, int size) {
int ret;
if(!audioOutput->open) return -1;
if(!audioOutput->sameInAndOutFormats) {
convertAudioFormat(audioOutput, &playChunk, &size);
}
return audioOutput->playFunc(audioOutput, playChunk, size);
blockSignals();
ret = audioOutput->playFunc(audioOutput, playChunk, size);
unblockSignals();
return ret;
}
void closeAudioOutput(AudioOutput * audioOutput) {