13
0

ALSA-Backend prefer ppoll()

This commit is contained in:
Robin Gareus 2015-01-28 13:17:40 +01:00
parent de85bfd857
commit 397ce4ccc7

View File

@ -170,7 +170,11 @@ snd_pcm_sframes_t Alsa_pcmi::pcm_wait (void)
}
for (i = 0; i < n2; i++) _poll_fd [i].events |= POLLERR;
r = poll (_poll_fd, n2, 1000);
timespec timeout;
timeout.tv_sec = 1;
timeout.tv_nsec = 0;
r = ppoll (_poll_fd, n2, &timeout, NULL);
if (r < 0)
{
if (errno == EINTR) return 0;