13
0

Fix crash with input (not duplex) control MIDI ports.

git-svn-id: svn://localhost/ardour2/branches/3.0@5829 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2009-10-20 22:33:08 +00:00
parent c206cad638
commit 6bef95806e

View File

@ -44,7 +44,7 @@ JACK_MidiPort::JACK_MidiPort(const XMLNode& node, jack_client_t* jack_client)
if (!err) {
_ok = true;
}
}
}
JACK_MidiPort::~JACK_MidiPort()
@ -92,7 +92,9 @@ JACK_MidiPort::cycle_start (nframes_t nframes)
void
JACK_MidiPort::cycle_end ()
{
flush(jack_port_get_buffer(_jack_output_port, _nframes_this_cycle));
if (_jack_output_port != 0) {
flush(jack_port_get_buffer(_jack_output_port, _nframes_this_cycle));
}
}
int