summaryrefslogtreecommitdiff
path: root/libs/ardour/midi_buffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/midi_buffer.cc')
-rw-r--r--libs/ardour/midi_buffer.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/midi_buffer.cc b/libs/ardour/midi_buffer.cc
index e944727337..403f0a86ac 100644
--- a/libs/ardour/midi_buffer.cc
+++ b/libs/ardour/midi_buffer.cc
@@ -497,6 +497,12 @@ MidiBuffer::merge_in_place(const MidiBuffer &other)
(int) *(_data + us.offset + sizeof (TimeType)),
(int) *(other._data + them.offset + sizeof (TimeType))));
+ if ((*us).time() != (*them).time()) {
+ cerr << " in merge code for two events:\n"
+ << '\t' << (*us) << endl
+ << '\t' << (*them) << endl
+ << "about to crash ...\n";
+ }
assert ((*us).time() == (*them).time());
uint8_t our_midi_status_byte = *(_data + us.offset + sizeof (TimeType));