From ee5804fed7237e382a75c42a9f926ec38bb96e18 Mon Sep 17 00:00:00 2001 From: Johns Date: Wed, 7 Mar 2012 15:13:07 +0100 Subject: Handle snd_pcm_wait timeouts. --- audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'audio.c') diff --git a/audio.c b/audio.c index 177f1a2..165483f 100644 --- a/audio.c +++ b/audio.c @@ -672,7 +672,8 @@ static void AlsaThread(void) usleep(24 * 1000); continue; } - if (AlsaFlushBuffer || AudioPaused) { + // timeout or some commands + if (!err || AlsaFlushBuffer || AudioPaused) { continue; } if ((err = AlsaPlayRingbuffer())) { // empty / error -- cgit v1.2.3