abique / midi-parser

Very simple midi parser
MIT License
40 stars 9 forks source link

Fix parser->meta.bytes not being set for meta events #8

Closed ell1e closed 3 years ago

ell1e commented 3 years ago

It appears that parser->meta.bytes was added so it would be pointing to the "payload" (the bytes that contain the meta event data, with the specified variable data length). However, no code so far actually set this pointer so that it was always NULL. This pull request fixes this and actually sets it.

If I misunderstood the intended use of bytes then please do not merge this, only if I actually guessed it correctly.

abique commented 3 years ago

bytes is similar to what it would be with sysex.