Merge pull request #557 from jpcima/lv2-scala-fix

Fix a crash with scala files under LV2
This commit is contained in:
JP Cimalando 2020-11-17 20:01:01 +01:00 committed by GitHub
commit cdc8ead6ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1430,7 +1430,7 @@ work(LV2_Handle instance,
else if (atom->type == self->sfizz_scala_file_uri)
{
const char *scala_file_path = LV2_ATOM_BODY_CONST(atom);
if (sfizz_lv2_load_scala_file(self->synth, scala_file_path)) {
if (sfizz_lv2_load_scala_file(self, scala_file_path)) {
lv2_log_note(&self->logger, "[sfizz] Scala file loaded: %s\n", scala_file_path);
} else {
lv2_log_error(&self->logger,
@ -1493,7 +1493,7 @@ work(LV2_Handle instance,
lv2_log_note(&self->logger,
"[sfizz] Scala file %s seems to have been updated, reloading\n",
self->scala_file_path);
if (sfizz_lv2_load_scala_file(self->synth, self->scala_file_path)) {
if (sfizz_lv2_load_scala_file(self, self->scala_file_path)) {
lv2_log_note(&self->logger, "[sfizz] Scala file loaded: %s\n", self->scala_file_path);
} else {
lv2_log_error(&self->logger,