diff options
author | wm4 <wm4@nowhere> | 2017-02-27 16:25:47 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-02-27 16:25:47 +0100 |
commit | 6ace32100a32bb6727b77da5f5abedee5285449d (patch) | |
tree | f272a531eae0cea6c7351cb0bf19762d3e89bc78 /audio | |
parent | 35498d5957e353b814f59d96bf10415eb6af7581 (diff) | |
download | mpv-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')
-rw-r--r-- | audio/out/ao_alsa.c | 2 |
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) |