Commit 2f878e51 authored by Oleg Prokhorov's avatar Oleg Prokhorov Committed by Alexandre Julliard

Small fix in sound flushing code.

parent e55d5937
......@@ -845,6 +845,9 @@ void wait_for_poll(snd_pcm_t *handle, struct pollfd *ufds, unsigned int count)
{
unsigned short revents;
if (snd_pcm_state(handle) != SND_PCM_STATE_RUNNING)
return;
while (1) {
poll(ufds, count, -1);
snd_pcm_poll_descriptors_revents(handle, ufds, count, &revents);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment