summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2012-12-20 16:15:56 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2012-12-20 16:15:56 +0000
commit601b21f55e3616e402e575fa6be74bee2d980e56 (patch)
treeeeb67f7f9734dede502b05635d10141231f33bd1 /usr.bin
parentf559f98bf2a2505d21cbce23c59432bb402ac935 (diff)
readjust midi flow control after consuming input data
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/sndiod/midi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/sndiod/midi.c b/usr.bin/sndiod/midi.c
index 1b7717aac17..637d88fb716 100644
--- a/usr.bin/sndiod/midi.c
+++ b/usr.bin/sndiod/midi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: midi.c,v 1.6 2012/12/01 12:13:34 ratchov Exp $ */
+/* $OpenBSD: midi.c,v 1.7 2012/12/20 16:15:55 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -347,6 +347,7 @@ midi_in(struct midi *iep, unsigned char *idata, int icount)
iep->tickets -= icount;
if (iep->tickets < 0)
iep->tickets = 0;
+ midi_tickets(iep);
}
/*