13
0

Remove redundant port-owner check

Ports owned by Ardour are already filtered out by
PortManager::get_known_midi_ports() ->
PortManager::fill_midi_port_info_locked()

This change is in preparation for allowing to expose Ardour's
"Virtual MIDI Keyboard" keyboard (which is owned by Ardour).
This commit is contained in:
Robin Gareus 2019-10-18 15:22:33 +02:00
parent f0d2327af0
commit 148a9682be
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -2006,10 +2006,6 @@ MidiPortOptions::refill_midi_ports (bool for_input, Gtk::TreeView& view)
for (vector<string>::const_iterator s = ports.begin(); s != ports.end(); ++s) { for (vector<string>::const_iterator s = ports.begin(); s != ports.end(); ++s) {
if (AudioEngine::instance()->port_is_mine (*s)) {
continue;
}
PortManager::MidiPortInformation mpi (AudioEngine::instance()->midi_port_information (*s)); PortManager::MidiPortInformation mpi (AudioEngine::instance()->midi_port_information (*s));
if (!mpi.exists) { if (!mpi.exists) {