diff options
author | Robin Gareus <robin@gareus.org> | 2014-06-10 03:18:05 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-06-10 03:18:05 +0200 |
commit | 7df663acf2fad9b7d21ead84b393da006ed57b97 (patch) | |
tree | 3f0bbbb7aa4dff5a3770cb10f22455894aba18b0 /libs/midi++2/mmc.cc | |
parent | 915bb2f6413b8339692aa1a0c17065581ae6aa54 (diff) |
fix crash when trying to send MMC of timecode > 255 hours
Diffstat (limited to 'libs/midi++2/mmc.cc')
-rw-r--r-- | libs/midi++2/mmc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/midi++2/mmc.cc b/libs/midi++2/mmc.cc index b92e686ce6..c34304dd08 100644 --- a/libs/midi++2/mmc.cc +++ b/libs/midi++2/mmc.cc @@ -710,7 +710,7 @@ MachineControlCommand::fill_buffer (MachineControl* mmc, MIDI::byte* b) const if (_command == MachineControl::cmdLocate) { *b++ = 0x6; // byte count *b++ = 0x1; // "TARGET" subcommand - *b++ = _time.hours; + *b++ = _time.hours & 0xff; *b++ = _time.minutes; *b++ = _time.seconds; *b++ = _time.frames; |