ao_alsa: fix an error check

Fixes #4188 as pointed out in the issue.
This commit is contained in:
wm4 2017-02-27 16:25:47 +01:00
parent 35498d5957
commit 6ace32100a
1 changed files with 1 additions and 1 deletions

View File

@ -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)