NO-OP: cleanup code

This commit is contained in:
Robin Gareus 2019-09-22 04:15:01 +02:00
parent 799e535b2a
commit 7dc52e009f
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 9 additions and 8 deletions

View File

@ -31,7 +31,7 @@ using namespace ARDOUR;
InternalReturn::InternalReturn (Session& s)
: Return (s, true)
{
_display_to_user = false;
_display_to_user = false;
}
void
@ -40,18 +40,19 @@ InternalReturn::run (BufferSet& bufs, samplepos_t /*start_sample*/, samplepos_t
if (!_active && !_pending_active) {
return;
}
_active = _pending_active;
Glib::Threads::Mutex::Lock lm (_sends_mutex, Glib::Threads::TRY_LOCK);
if (lm.locked ()) {
for (list<InternalSend*>::iterator i = _sends.begin(); i != _sends.end(); ++i) {
if ((*i)->active () && (!(*i)->source_route() || (*i)->source_route()->active())) {
bufs.merge_from ((*i)->get_buffers(), nframes);
}
}
if (!lm.locked ()) {
return;
}
_active = _pending_active;
for (list<InternalSend*>::iterator i = _sends.begin(); i != _sends.end(); ++i) {
if ((*i)->active () && (!(*i)->source_route() || (*i)->source_route()->active())) {
bufs.merge_from ((*i)->get_buffers(), nframes);
}
}
}
void