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:
parent
b0e6a06199
commit
9b03731c86
@ -151,13 +151,20 @@ static void convertAudioFormat(AudioOutput * audioOutput, char ** chunkArgPtr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
int playAudioOutput(AudioOutput * audioOutput, char * playChunk, int size) {
|
int playAudioOutput(AudioOutput * audioOutput, char * playChunk, int size) {
|
||||||
|
int ret;
|
||||||
|
|
||||||
if(!audioOutput->open) return -1;
|
if(!audioOutput->open) return -1;
|
||||||
|
|
||||||
if(!audioOutput->sameInAndOutFormats) {
|
if(!audioOutput->sameInAndOutFormats) {
|
||||||
convertAudioFormat(audioOutput, &playChunk, &size);
|
convertAudioFormat(audioOutput, &playChunk, &size);
|
||||||
}
|
}
|
||||||
|
|
||||||
return audioOutput->playFunc(audioOutput, playChunk, size);
|
|
||||||
|
blockSignals();
|
||||||
|
ret = audioOutput->playFunc(audioOutput, playChunk, size);
|
||||||
|
unblockSignals();
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void closeAudioOutput(AudioOutput * audioOutput) {
|
void closeAudioOutput(AudioOutput * audioOutput) {
|
||||||
|
Loading…
Reference in New Issue
Block a user