projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
correct name of Midi-UI thread memory-pool and request-queue
[ardour.git]
/
libs
/
backends
/
alsa
/
alsa_midi.cc
diff --git
a/libs/backends/alsa/alsa_midi.cc
b/libs/backends/alsa/alsa_midi.cc
index dce84785b3c3c21a4c841723d0ab4066cbc4dbe4..43c11c32651c9662051f5d0e59a68214a8051f87 100644
(file)
--- a/
libs/backends/alsa/alsa_midi.cc
+++ b/
libs/backends/alsa/alsa_midi.cc
@@
-186,6
+186,7
@@
AlsaMidiIn::recv_event (pframes_t &time, uint8_t *data, size_t &size)
if (vector.len[0] > 0) {
memcpy ((uint8_t*)&h, vector.buf[0], vector.len[0]);
}
+ assert(vector.buf[1] || vector.len[0] == sizeof(MidiEventHeader));
memcpy (((uint8_t*)&h) + vector.len[0], vector.buf[1], sizeof(MidiEventHeader) - vector.len[0]);
}