if a Route's processor lock cannot be taken, fill buffers with silence (causing click) rather than abort()

This commit is contained in:
Paul Davis 2014-12-05 14:49:21 -05:00
parent cf3faf1b42
commit 91d3e8ead0

View file

@ -433,7 +433,10 @@ Route::process_output_buffers (BufferSet& bufs,
assert (!AudioEngine::instance()->process_lock().trylock());
Glib::Threads::RWLock::ReaderLock lm (_processor_lock, Glib::Threads::TRY_LOCK);
assert(lm.locked());
if (!lm.locked()) {
bufs.silence (nframes, 0);
return;
}
/* figure out if we're going to use gain automation */
if (gain_automation_ok) {