From 80cab52a066ebe6c994af727a1aa2379dba4b838 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 18 Nov 2019 11:40:06 -0700 Subject: [PATCH] fix typo/thinko in logic to decide if MIDI buffers in DiskWriter require the butler (to write to disk) --- libs/ardour/disk_writer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/disk_writer.cc b/libs/ardour/disk_writer.cc index 35c7d120b0..8c4d40ea71 100644 --- a/libs/ardour/disk_writer.cc +++ b/libs/ardour/disk_writer.cc @@ -625,7 +625,7 @@ DiskWriter::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp /* MIDI BUTLER REQUIRED CODE */ - if (_playlists[DataType::MIDI] && _midi_buf && (_midi_buf->read_space() < _midi_buf->bufsize() / 2)) { + if (_playlists[DataType::MIDI] && _midi_buf && (_midi_buf->read_space() >= _midi_buf->bufsize() / 2)) { _need_butler = true; }