13
0

do not attempt to clear a (JACK) MIDI port buffer after registering the port, this is not a legal access to a JACK port buffer

git-svn-id: svn://localhost/ardour2/branches/3.0@7896 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-10-14 13:10:42 +00:00
parent b6f1f02131
commit 58416460ad

View File

@ -401,7 +401,7 @@ Port::create_port ()
{
_jack_port = jack_port_register(_jack_client, _tagname.c_str(), JACK_DEFAULT_MIDI_TYPE, _flags, 0);
if (_jack_port) {
jack_midi_clear_buffer (jack_port_get_buffer (_jack_port, jack_get_buffer_size (_jack_client)));
// jack_midi_clear_buffer (jack_port_get_buffer (_jack_port, jack_get_buffer_size (_jack_client)));
}
return _jack_port == 0 ? -1 : 0;