Fix VST state-lock SNAFU (effSetChunk and process are exclusive)

This commit is contained in:
Robin Gareus 2016-11-14 21:05:36 +01:00
parent 8e3b6c9ac6
commit f30fbcaaf9
5 changed files with 10 additions and 5 deletions

View file

@ -320,8 +320,10 @@ maybe_set_program (VSTState* vstfx)
}
if (vstfx->want_chunk == 1) {
pthread_mutex_lock (&vstfx->state_lock);
vstfx->plugin->dispatcher (vstfx->plugin, 24 /* effSetChunk */, 1, vstfx->wanted_chunk_size, vstfx->wanted_chunk, 0);
vstfx->want_chunk = 0;
pthread_mutex_unlock (&vstfx->state_lock);
}
}