blob: bfa0dfb93968d3eed38f8624e6e9cc77df28151f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- 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;
|