From 6ace32100a32bb6727b77da5f5abedee5285449d Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 27 Feb 2017 16:25:47 +0100 Subject: ao_alsa: fix an error check Fixes #4188 as pointed out in the issue. --- audio/out/ao_alsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio') 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) -- cgit v1.2.3