Revert the removal of VST mutex lock, for now

This commit is contained in:
Jean Pierre Cimalando 2020-03-08 11:22:30 +01:00
parent 8669d8b093
commit 4efdcd0ca5

View file

@ -342,6 +342,7 @@ void SfizzVstProcessor::doBackgroundWork()
if (!std::strcmp(id, "LoadSfz")) {
std::vector<Vst::TChar> path(maxPathLen + 1);
if (attr->getString("File", path.data(), maxPathLen) == kResultTrue) {
std::lock_guard<std::mutex> lock(_processMutex);
_state.sfzFile = Steinberg::String(path.data()).text8();
_synth->loadSfzFile(_state.sfzFile);
}