aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_alsa.c
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2016-07-25 16:42:54 +1200
committerMatthew Gregan <[email protected]>2016-07-25 16:42:54 +1200
commitdd826fb524c3cc85f5ad877cbf94ec9320baa4ce (patch)
tree64d8ee86931d7400629fd40bd0e8a87956f9b1f2 /src/cubeb_alsa.c
parentebde3806ce65cb7ea67d08defae28e971e53c32e (diff)
downloadcubeb-dd826fb524c3cc85f5ad877cbf94ec9320baa4ce.tar.gz
cubeb-dd826fb524c3cc85f5ad877cbf94ec9320baa4ce.zip
alsa: Link revents workaround to bug #135.
Diffstat (limited to 'src/cubeb_alsa.c')
-rw-r--r--src/cubeb_alsa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cubeb_alsa.c b/src/cubeb_alsa.c
index f24b991..ec203e0 100644
--- a/src/cubeb_alsa.c
+++ b/src/cubeb_alsa.c
@@ -385,6 +385,8 @@ alsa_run(cubeb * ctx)
for (i = 0; i < CUBEB_STREAM_MAX; ++i) {
stm = ctx->streams[i];
+ /* We can't use snd_pcm_poll_descriptors_revents here because of
+ https://github.com/kinetiknz/cubeb/issues/135. */
if (stm && stm->state == RUNNING && stm->fds && any_revents(stm->fds, stm->nfds)) {
alsa_set_stream_state(stm, PROCESSING);
pthread_mutex_unlock(&ctx->mutex);