Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
sndio: fixed poll() call (thanks, kdrakehp!).
Fixes Bugzilla #3705.
  • Loading branch information
icculus committed Jul 21, 2017
1 parent ee9cc32 commit 8ac17a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/sndio/SDL_sndioaudio.c
Expand Up @@ -184,7 +184,7 @@ SNDIO_CaptureFromDevice(_THIS, void *buffer, int buflen)
r = SNDIO_sio_read(this->hidden->dev, buffer, buflen);
while (r == 0 && !SNDIO_sio_eof(this->hidden->dev)) {
if ((nfds = SNDIO_sio_pollfd(this->hidden->dev, this->hidden->pfd, POLLIN)) <= 0
|| poll(this->hidden->pfd, nfds, INFTIM) <= 0) {
|| poll(this->hidden->pfd, nfds, INFTIM) < 0) {
return -1;
}
revents = SNDIO_sio_revents(this->hidden->dev, this->hidden->pfd);
Expand Down

0 comments on commit 8ac17a2

Please sign in to comment.