diff options
author | Robin Gareus <robin@gareus.org> | 2016-11-14 21:05:36 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-11-14 21:06:18 +0100 |
commit | f30fbcaaf968dcb5af8b762b6e3d25f6fe313f3f (patch) | |
tree | 51dfdfda0759fdc5f72e55a1a493fc0d8263dd29 /libs/fst | |
parent | 8e3b6c9ac6b4d0e167ab116d197d32b0f8202e8b (diff) |
Fix VST state-lock SNAFU (effSetChunk and process are exclusive)
Diffstat (limited to 'libs/fst')
-rw-r--r-- | libs/fst/vstwin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/fst/vstwin.c b/libs/fst/vstwin.c index 7f748c6db6..1e053d1ae7 100644 --- a/libs/fst/vstwin.c +++ b/libs/fst/vstwin.c @@ -92,8 +92,10 @@ maybe_set_program (VSTState* fst) // XXX check // 24 == audioMasterGetAutomationState, // 48 == audioMasterGetChunkFile + pthread_mutex_lock (&vstfx->state_lock); fst->plugin->dispatcher (fst->plugin, 24 /* effSetChunk */, 1, fst->wanted_chunk_size, fst->wanted_chunk, 0); fst->want_chunk = 0; + pthread_mutex_unlock (&vstfx->state_lock); } } |