13
0

coremidi: be sure to mark _event._pending false after queueing, so that it doesn't get queued up again later

This commit is contained in:
Paul Davis 2016-01-09 13:52:53 -05:00
parent 2be5131ea1
commit 4a99727dea

View File

@ -2110,7 +2110,11 @@ CoreMidiPort::queue_event (
pframes_t timestamp,
const uint8_t* buffer, size_t size)
{
return CoreAudioBackend::_midi_event_put (port_buffer, timestamp, buffer, size);
const int ret = CoreAudioBackend::_midi_event_put (port_buffer, timestamp, buffer, size);
if (!ret) { /* success */
_event._pending = false;
}
return ret;
}
void