=?UTF-8?Q?J=C3=B6rg=20H=C3=B6hle=20?=: winealsa: Have the MIDI recorder wait in poll(), not snd_seq_event_input().

Alexandre Julliard julliard at winehq.org
Thu Jan 24 12:59:49 CST 2013


Module: wine
Branch: master
Commit: d7c716c4705dbd81b3a3d69fbf1bf79de022440c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d7c716c4705dbd81b3a3d69fbf1bf79de022440c

Author: Jörg Höhle <hoehle at 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;
 	}




More information about the wine-cvs mailing list