13
0

Add additional flags when registering a shadow port.

This commit is contained in:
Paul Davis 2016-06-20 12:49:04 -04:00
parent 483c408390
commit 74ae2c6ae6

View File

@ -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<MidiPort> (AudioEngine::instance()->register_output_port (DataType::MIDI, name, false)))) {
if (!(shadow_port = boost::dynamic_pointer_cast<MidiPort> (AudioEngine::instance()->register_output_port (DataType::MIDI, name, false, PortFlags (Shadow|IsTerminal))))) {
return -3;
}