fix bug in RTMidiBuffer::bytes() method
bytes[0] does not contain data, only the offset for a blob, if relevant
This commit is contained in:
parent
948500bbc7
commit
32408db777
@ -83,9 +83,9 @@ class LIBARDOUR_API RTMidiBuffer : public Evoral::EventSink<samplepos_t>
|
||||
}
|
||||
|
||||
uint8_t const * bytes (Item const & item, uint32_t& size) {
|
||||
if (item.bytes[0]) {
|
||||
if (!item.bytes[0]) {
|
||||
size = Evoral::midi_event_size (item.bytes[1]);
|
||||
return item.bytes;
|
||||
return &item.bytes[1];
|
||||
} else {
|
||||
uint32_t offset = item.offset & ~(1<<(CHAR_BIT-1));
|
||||
Blob* blob = reinterpret_cast<Blob*> (&_pool[offset]);
|
||||
|
Loading…
Reference in New Issue
Block a user