fix endless messages about MIDI events being dropped.
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 21 Oct 2013 15:24:31 +0000 (11:24 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 21 Oct 2013 15:24:31 +0000 (11:24 -0400)
commit3e4b60872414b26bcc9d7632f91364f5246e1692
treebeab6ed330c0eaa2dc497d34844eb197a900caca
parent78e3864c5d065aff26be30cbb2b2cd3651d52ffc
fix endless messages about MIDI events being dropped.

track-owned MIDI port buffers (at the Ardour level) get ::flush_buffers() called twice, once by Delivery::flush_buffers() which is called
at the end of MidiTrack::rol() to push data out in graph order, and then finally as a last-chance effort in PortManager::cycle_end().

This should not cause a repeated attempt to write the same data, but it was. Fixed by marking the buffer empty once its data has
been flushed into a backend port buffer.
libs/ardour/midi_port.cc