From 598d1dc816b8ff2785c74ee1cdd9ab431337fbde Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Thu, 9 Jul 2009 12:33:51 +0200 Subject: [PATCH] RemoteVstPlugin: don't process MIDI events in GUI thread Don't process MIDI events in GUI thread as this might corrupt MIDI event array if both GUI and processing thread access it. Fixes possible crashes. Signed-off-by: Tobias Doerffel (cherry picked from commit e7ab8e5670b45d988bd425aa4f61d5d899e69af2) --- plugins/vst_base/remote_vst_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/vst_base/remote_vst_plugin.cpp b/plugins/vst_base/remote_vst_plugin.cpp index 580d097f2..cd75f3897 100644 --- a/plugins/vst_base/remote_vst_plugin.cpp +++ b/plugins/vst_base/remote_vst_plugin.cpp @@ -1219,7 +1219,7 @@ DWORD WINAPI RemoteVstPlugin::processingThread( LPVOID _param ) remotePluginClient::message m; while( ( m = _this->receiveMessage() ).id != IdQuit ) { - if( m.id == IdStartProcessing ) + if( m.id == IdStartProcessing || m.id == IdMidiEvent ) { _this->processMessage( m ); }