Commit d7c716c4 authored by Jörg Höhle's avatar Jörg Höhle Committed by Alexandre Julliard

winealsa: Have the MIDI recorder wait in poll(), not snd_seq_event_input().

parent 22b3a825
......@@ -296,7 +296,7 @@ static DWORD WINAPI midRecThread(LPVOID arg)
snd_seq_poll_descriptors(midiSeq, pfd, npfd, POLLIN);
/* Check if an event is present */
if (poll(pfd, npfd, 250) < 0) {
if (poll(pfd, npfd, 250) <= 0) {
HeapFree(GetProcessHeap(), 0, pfd);
continue;
}
......
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