13
0

Don't abort if mis-matched processors are found; a vaguely satisfactory workaround for crashes when loading sessions with missing plugins.

git-svn-id: svn://localhost/ardour2/branches/3.0@11981 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-04-15 17:12:09 +00:00
parent bef36b6f65
commit 1f33d60aff

View File

@ -522,10 +522,13 @@ Route::process_output_buffers (BufferSet& bufs,
/* if it has any inputs, make sure they match */
if (boost::dynamic_pointer_cast<UnknownProcessor> (*i) == 0 && (*i)->input_streams() != ChanCount::ZERO) {
if (bufs.count() != (*i)->input_streams()) {
cerr << _name << " bufs = " << bufs.count()
<< " input for " << (*i)->name() << " = " << (*i)->input_streams()
<< endl;
abort ();
DEBUG_TRACE (
DEBUG::Processors, string_compose (
"%1 bufs = %2 input for %3 = %4\n",
_name, bufs.count(), (*i)->name(), (*i)->input_streams()
)
);
continue;
}
}
#endif