Fix WinMME midi driver shutdown with sysex enabled
authorTim Mayberry <mojofunk@gmail.com>
Tue, 6 Oct 2015 03:24:53 +0000 (13:24 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Tue, 6 Oct 2015 03:29:57 +0000 (13:29 +1000)
commit4ebc6ef0b400b8db94635d2220124a642450ce60
tree92a0234393521e157dbc59d9f0e319da0c59010b
parent1c0265e27c315d94cbbfc963ff153194fc4d6548
Fix WinMME midi driver shutdown with sysex enabled

midiInReset triggers the sysex callback to tell the application that it has
finished with the buffer. Calling midiInAddBuffer results in an infinite loop
so just return during shutdown.
libs/backends/portaudio/winmmemidi_input_device.cc
libs/backends/portaudio/winmmemidi_input_device.h