summaryrefslogtreecommitdiff
path: root/libs/ardour/route.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-04-01 06:53:26 +0200
committerRobin Gareus <robin@gareus.org>2020-04-01 16:31:58 +0200
commit3b77472ac0634f77a938c34c60e2b66804eee94c (patch)
tree350dc179be1d089d846f5608c43c490b51cd7407 /libs/ardour/route.cc
parent26c6d3c4c9d8d02aee3c58004b7b616b66630d22 (diff)
Overhaul InstrumentInfo
* Remove unused direct calls into plugin * Assume empty model to mean plugin-provided MIDNAM (!) The route owned Instrument-Info is the central access point used by the GUI for MIDI name lookups. At this point in time, custom settings are saved/restored by the GUI (MidiTimeAxisView). InstrumentInfo provides a volatile store for MIDNAM mode and model.
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r--libs/ardour/route.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index f71f87e02f..af7e0890e7 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -1701,9 +1701,7 @@ void
Route::reset_instrument_info ()
{
boost::shared_ptr<Processor> instr = the_instrument();
- if (instr) {
- _instrument_info.set_internal_instrument (instr);
- }
+ _instrument_info.set_internal_instrument (instr);
}
/** Caller must hold process lock */