diff options
Diffstat (limited to 'libs/midi++2/manager.cc')
-rw-r--r-- | libs/midi++2/manager.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libs/midi++2/manager.cc b/libs/midi++2/manager.cc index ab03688e49..ab37073afd 100644 --- a/libs/midi++2/manager.cc +++ b/libs/midi++2/manager.cc @@ -70,12 +70,6 @@ Manager::add_port (const XMLNode& node) PortMap::iterator existing; pair<string, Port *> newpair; - /* do not allow multiple ports with the same tag. if attempted, just return the existing - port with the same tag. XXX this is really caused by the mess of setup_midi() being - called twice in Ardour, once in the global init() function and once after the user RC file - has been loaded (there may be extra ports in it). - */ - if ((existing = ports_by_tag.find (desc.tag)) != ports_by_tag.end()) { port = (*existing).second; @@ -150,6 +144,7 @@ Manager::add_port (const XMLNode& node) } port = factory.create_port (node, api_data); + if (port == 0) { return 0; |