winealsa: Have the MIDI recorder wait in poll(), not snd_seq_event_input().
This commit is contained in:
parent
22b3a8251f
commit
d7c716c470
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue