summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-01-28 23:03:55 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-01-28 23:05:28 -0500
commite862be73000e8eb2925f33cf9685c0db01134655 (patch)
treef6949e1f79dc66a69caa892765b2f424864d045f
parentf1ed01b97fe6cb7852cec4ab67d6faad8fa45022 (diff)
mackie: use Route::send_name() rather than Route::nth_send()
-rw-r--r--libs/surfaces/mackie/strip.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/libs/surfaces/mackie/strip.cc b/libs/surfaces/mackie/strip.cc
index 8767e244d7..3190469ac2 100644
--- a/libs/surfaces/mackie/strip.cc
+++ b/libs/surfaces/mackie/strip.cc
@@ -1765,23 +1765,17 @@ Strip::setup_sends_vpot (boost::shared_ptr<Route> r)
const uint32_t global_pos = _surface->mcp().global_index (*this);
- boost::shared_ptr<Processor> send = r->nth_send (global_pos);
-
- if (!send) {
- _surface->write (display (0, string()));
- return;
- }
-
boost::shared_ptr<AutomationControl> pc = r->send_level_controllable (global_pos);
if (!pc) {
+ _surface->write (display (0, string()));
return;
}
pc->Changed.connect (subview_connections, MISSING_INVALIDATOR, boost::bind (&Strip::notify_send_level_change, this, BusSendLevel, global_pos, false), ui_context());
_vpot->set_control (pc);
- _surface->write (display (0, send->name()));
+ _surface->write (display (0, r->send_name(global_pos)));
notify_send_level_change (BusSendLevel, global_pos, true);
}