summaryrefslogtreecommitdiffstats
path: root/audio/out
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-02-27 16:25:47 +0100
committerwm4 <wm4@nowhere>2017-02-27 16:25:47 +0100
commit6ace32100a32bb6727b77da5f5abedee5285449d (patch)
treef272a531eae0cea6c7351cb0bf19762d3e89bc78 /audio/out
parent35498d5957e353b814f59d96bf10415eb6af7581 (diff)
downloadmpv-6ace32100a32bb6727b77da5f5abedee5285449d.tar.bz2
mpv-6ace32100a32bb6727b77da5f5abedee5285449d.tar.xz
ao_alsa: fix an error check
Fixes #4188 as pointed out in the issue.
Diffstat (limited to 'audio/out')
-rw-r--r--audio/out/ao_alsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c
index ac29905f5a..5b07fb2546 100644
--- a/audio/out/ao_alsa.c
+++ b/audio/out/ao_alsa.c
@@ -1121,7 +1121,7 @@ static int audio_wait(struct ao *ao, pthread_mutex_t *lock)
return r;
unsigned short revents;
- snd_pcm_poll_descriptors_revents(p->alsa, fds, num_fds, &revents);
+ err = snd_pcm_poll_descriptors_revents(p->alsa, fds, num_fds, &revents);
CHECK_ALSA_ERROR("cannot read poll events");
if (revents & POLLERR)