summaryrefslogtreecommitdiff
path: root/libs/ardour/session_process.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-01-03 18:36:00 +0100
committerRobin Gareus <robin@gareus.org>2014-01-03 18:36:00 +0100
commitd85ec4ee173127a18ea68fab55f78c90713dadcf (patch)
tree488d8c55113fb7f5e7bb975054b48340fafe33f2 /libs/ardour/session_process.cc
parenta37112bdd760e444d0f923796fab49765b517a2c (diff)
don't split process cycle at end
Keep in mind: While this is the correct thing to do, it hides another another bug under the hood, related to _global_port_buffer_offset in MidiPort::flush_buffers. For debugging the latter issue, revert this.
Diffstat (limited to 'libs/ardour/session_process.cc')
-rw-r--r--libs/ardour/session_process.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/session_process.cc b/libs/ardour/session_process.cc
index 18dfbf2f2e..6d8c0f9f70 100644
--- a/libs/ardour/session_process.cc
+++ b/libs/ardour/session_process.cc
@@ -421,7 +421,9 @@ Session::process_with_events (pframes_t nframes)
check_declick_out ();
}
- _engine.split_cycle (this_nframes);
+ if (nframes > 0) {
+ _engine.split_cycle (this_nframes);
+ }
/* now handle this event and all others scheduled for the same time */