diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2012-12-20 16:15:56 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2012-12-20 16:15:56 +0000 |
commit | 601b21f55e3616e402e575fa6be74bee2d980e56 (patch) | |
tree | eeb67f7f9734dede502b05635d10141231f33bd1 /usr.bin | |
parent | f559f98bf2a2505d21cbce23c59432bb402ac935 (diff) |
readjust midi flow control after consuming input data
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/sndiod/midi.c | 3 |
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); } /* |