mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
Fix VST state-lock SNAFU (effSetChunk and process are exclusive)
This commit is contained in:
parent
8e3b6c9ac6
commit
f30fbcaaf9
5 changed files with 10 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue