projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db5377d
)
ignore system reset messages entirely in the MIDI parser
author
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 4 Jul 2018 19:40:47 +0000
(15:40 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 4 Jul 2018 19:40:47 +0000
(15:40 -0400)
libs/midi++2/parser.cc
patch
|
blob
|
history
diff --git
a/libs/midi++2/parser.cc
b/libs/midi++2/parser.cc
index ff0702f794acff5463f58338e20d3fe1896b1235..9866d41632f948aa0bfab565f916c884bf596ed9 100644
(file)
--- a/
libs/midi++2/parser.cc
+++ b/
libs/midi++2/parser.cc
@@
-346,6
+346,13
@@
Parser::scanner (unsigned char inbyte)
return;
}
+ /* ditto for system reset, except do even less */
+
+ if (inbyte == 0xff) {
+ message_counter[inbyte]++;
+ return;
+ }
+
/* If necessary, allocate larger message buffer. */
if (msgindex >= msglen) {
@@
-793,4
+800,3
@@
Parser::set_offline (bool yn)
state = NEEDSTATUS;
}
}
-