output: close device on play error

When an output plugin fails to play a chunk, close it.  This replaces
various manual close() calls in nearly all plugins.
This commit is contained in:
Max Kellermann
2008-10-29 20:40:33 +01:00
parent 58c5bee9f0
commit 2f76db4c78
7 changed files with 7 additions and 12 deletions
-1
View File
@@ -412,7 +412,6 @@ alsa_playAudio(void *data, const char *playChunk, size_t size)
ERROR("closing ALSA device \"%s\" due to write "
"error: %s\n", ad->device,
snd_strerror(-errno));
alsa_closeDevice(ad);
return false;
}
continue;