[vlc-commits] codec/audiotoolbox_midi: Handle SysEx
Marvin Scholz
git at videolan.org
Tue Dec 5 16:11:27 CET 2017
vlc/vlc-3.0 | branch: master | Marvin Scholz <epirat07 at gmail.com> | Thu Nov 30 09:25:05 2017 +0100| [6ec841c515ecd9668092a0662a8a461017957ede] | committer: Marvin Scholz
codec/audiotoolbox_midi: Handle SysEx
(cherry picked from commit 7b91213fa9636b6fb0e67d0e9c3e8aa3fde3a835)
Signed-off-by: Marvin Scholz <epirat07 at gmail.com>
Acked-By: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=6ec841c515ecd9668092a0662a8a461017957ede
---
modules/codec/audiotoolbox_midi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/codec/audiotoolbox_midi.c b/modules/codec/audiotoolbox_midi.c
index 87cea6ef7d..74aba8e7dc 100644
--- a/modules/codec/audiotoolbox_midi.c
+++ b/modules/codec/audiotoolbox_midi.c
@@ -363,7 +363,8 @@ static int DecodeBlock (decoder_t *p_dec, block_t *p_block)
break;
case kMidiMessage_SysEx:
- // SysEx not handled
+ if (p_block->i_buffer < UINT32_MAX)
+ MusicDeviceSysEx(p_sys->synthUnit, p_block->p_buffer, (UInt32)p_block->i_buffer);
break;
default:
More information about the vlc-commits
mailing list