summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_alsa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c
index 3185cb4c4b..275f5c08a0 100644
--- a/audio/out/ao_alsa.c
+++ b/audio/out/ao_alsa.c
@@ -970,6 +970,8 @@ static int get_space(struct ao *ao)
check_device_present(ao, space);
goto alsa_error;
}
+ if (space == -EPIPE)
+ handle_underrun(ao);
if (space > p->buffersize || space < 0) // Buffer underrun?
space = p->buffersize;