summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-03-07 15:13:07 +0100
committerJohns <johns98@gmx.net>2012-03-07 15:13:07 +0100
commitee5804fed7237e382a75c42a9f926ec38bb96e18 (patch)
tree5c07dc79006e151e461ebda8afb4ea2d9aeb7721 /audio.c
parent1cbaddf75c979c6f61a95243157fa5fcd2da388a (diff)
downloadvdr-plugin-softhddevice-ee5804fed7237e382a75c42a9f926ec38bb96e18.tar.gz
vdr-plugin-softhddevice-ee5804fed7237e382a75c42a9f926ec38bb96e18.tar.bz2
Handle snd_pcm_wait timeouts.
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c3
1 files changed, 2 insertions, 1 deletions
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