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:
parent
2be5131ea1
commit
4a99727dea
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user