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 <tobias.doerffel@gmail.com>
(cherry picked from commit e7ab8e5670)
This commit is contained in:
Tobias Doerffel
2009-07-09 12:33:51 +02:00
parent 9fc0d8962d
commit 598d1dc816

View File

@@ -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 );
}