freebsd-ports/audio/fluidsynth/files/patch-src_drivers_fluid__alsa.c
Mathieu Arnold 9fa9eb9ac7 Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-26 16:51:15 +00:00

20 lines
621 B
C

--- src/drivers/fluid_alsa.c.orig 2012-08-16 04:01:13 UTC
+++ src/drivers/fluid_alsa.c
@@ -347,14 +347,16 @@ static int fluid_alsa_handle_write_error
case -EAGAIN:
snd_pcm_wait(pcm, 1);
break;
- case -EPIPE:
case -EBADFD:
if (snd_pcm_prepare(pcm) != 0) {
FLUID_LOG(FLUID_ERR, "Failed to prepare the audio device");
return FLUID_FAILED;
}
break;
+ case -EPIPE:
+#if EPIPE != ESTRPIPE
case -ESTRPIPE:
+#endif
if ((snd_pcm_resume(pcm) != 0) && (snd_pcm_prepare(pcm) != 0)) {
FLUID_LOG(FLUID_ERR, "Failed to resume the audio device");
return FLUID_FAILED;