The library protects itself on this call

This commit is contained in:
Paul Fd 2020-03-07 22:36:47 +01:00
parent 41810f9994
commit f88364b6b2

View file

@ -342,7 +342,6 @@ 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);
}