diff --git a/libs/ardour/midi_buffer.cc b/libs/ardour/midi_buffer.cc index d0e9882aeb..20331473a2 100644 --- a/libs/ardour/midi_buffer.cc +++ b/libs/ardour/midi_buffer.cc @@ -136,7 +136,10 @@ MidiBuffer::merge_from (const Buffer& src, samplecnt_t /*nframes*/, sampleoffset assert (mbuf != this); /* XXX use nframes, and possible offsets */ - merge_in_place (*mbuf); + if (!merge_in_place (*mbuf)) { + cerr << string_compose ("MidiBuffer::merge_in_place failed (buffer is full: size: %1 capacity %2 new bytes %3)", _size, _capacity, mbuf->size()) << endl; + PBD::stacktrace (cerr, 20); + } } /** Push an event into the buffer.