From 74ae2c6ae60c06b3cb86bcb52f5be23839e8c4ba Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 20 Jun 2016 12:49:04 -0400 Subject: [PATCH] Add additional flags when registering a shadow port. --- libs/ardour/async_midi_port.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/async_midi_port.cc b/libs/ardour/async_midi_port.cc index 23465a238b..7614015a2e 100644 --- a/libs/ardour/async_midi_port.cc +++ b/libs/ardour/async_midi_port.cc @@ -364,7 +364,7 @@ AsyncMIDIPort::add_shadow_port (string const & name, MidiFilter mf) /* shadow port is not async. */ - if (!(shadow_port = boost::dynamic_pointer_cast (AudioEngine::instance()->register_output_port (DataType::MIDI, name, false)))) { + if (!(shadow_port = boost::dynamic_pointer_cast (AudioEngine::instance()->register_output_port (DataType::MIDI, name, false, PortFlags (Shadow|IsTerminal))))) { return -3; }