Jörg Höhle : winealsa: Have the MIDI recorder wait in poll(), not snd_seq_event_input().
Module: wine Branch: master Commit: d7c716c4705dbd81b3a3d69fbf1bf79de022440c URL: http://source.winehq.org/git/wine.git/?a=commit;h=d7c716c4705dbd81b3a3d69fbf... Author: Jörg Höhle <hoehle(a)users.sourceforge.net> Date: Sat Jan 19 20:32:02 2013 +0100 winealsa: Have the MIDI recorder wait in poll(), not snd_seq_event_input(). --- dlls/winealsa.drv/midi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/winealsa.drv/midi.c b/dlls/winealsa.drv/midi.c index 25a722e..2798109 100644 --- a/dlls/winealsa.drv/midi.c +++ b/dlls/winealsa.drv/midi.c @@ -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; }
participants (1)
-
Alexandre Julliard