diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-09-05 13:22:34 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-09-05 13:22:34 -0400 |
commit | 1c49138e0099db37931b34fad552b43c332e187d (patch) | |
tree | b3ebb558e8b055695fff674114272f7a28792bda /libs/ardour/midi_ui.cc | |
parent | fee626c386ccc23c41b7b2976c5031cd335b7587 (diff) |
move MidiPortManager from AudioEngine to Session
This makes the responsibilities and ownership of non-Route related MIDI ports
more clear, and removes a few wierd bits of code. It also ensures that open/close/open
on the same session will retain connections for those MIDI ports
Diffstat (limited to 'libs/ardour/midi_ui.cc')
-rw-r--r-- | libs/ardour/midi_ui.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/midi_ui.cc b/libs/ardour/midi_ui.cc index e75c05c593..7346c0244c 100644 --- a/libs/ardour/midi_ui.cc +++ b/libs/ardour/midi_ui.cc @@ -118,7 +118,7 @@ void MidiControlUI::reset_ports () { if (port_sources.empty()) { - AsyncMIDIPort* async = dynamic_cast<AsyncMIDIPort*> (AudioEngine::instance()->midi_input_port()); + AsyncMIDIPort* async = dynamic_cast<AsyncMIDIPort*> (_session.midi_input_port()); if (!async) { return; |