[vlc-commits] codec/audiotoolbox_midi: Handle SysEx

Marvin Scholz git at videolan.org
Thu Nov 30 09:26:05 CET 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Thu Nov 30 09:25:05 2017 +0100| [7b91213fa9636b6fb0e67d0e9c3e8aa3fde3a835] | committer: Marvin Scholz

codec/audiotoolbox_midi: Handle SysEx

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7b91213fa9636b6fb0e67d0e9c3e8aa3fde3a835
---

 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