diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-10 16:27:01 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-10 16:27:01 +0000 |
commit | 893b468858a05f7ad9c344786e89d1414677c169 (patch) | |
tree | cae982983fc7720ffb6465cc60103b30838e020a /libs/ardour | |
parent | a8094bb49c61d18aa0e02585f7e912f6284a3ef8 (diff) |
add "centrally-parsed" property to MIDI::Port so that we can avoid the MidiUI loop from handling input for *all* MIDI ports created
git-svn-id: svn://localhost/ardour2/branches/3.0@11871 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/midi_ui.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/midi_ui.cc b/libs/ardour/midi_ui.cc index b9271ccd49..770a371457 100644 --- a/libs/ardour/midi_ui.cc +++ b/libs/ardour/midi_ui.cc @@ -133,6 +133,11 @@ MidiControlUI::reset_ports () boost::shared_ptr<const MIDI::Manager::PortList> plist = MIDI::Manager::instance()->get_midi_ports (); for (MIDI::Manager::PortList::const_iterator i = plist->begin(); i != plist->end(); ++i) { + + if (!(*i)->centrally_parsed()) { + continue; + } + int fd; if ((fd = (*i)->selectable ()) >= 0) { |