Enable manual reloading of an sfz file

This commit is contained in:
Paul Ferrand 2019-12-27 15:55:00 +01:00
parent ca29ca7164
commit c0f7b4f8b3

View file

@ -466,8 +466,7 @@ sfizz_lv2_handle_atom_object(sfizz_plugin_t *self, const LV2_Atom_Object *obj)
// If the parameter is different from the current one we send it through
// TODO: this check could happen on the worker side
self->changing_state = true;
if (strcmp(self->sfz_file_path, LV2_ATOM_BODY_CONST(sfz_file_path)))
self->worker->schedule_work(self->worker->handle, null_terminated_atom_size, sfz_file_path);
self->worker->schedule_work(self->worker->handle, null_terminated_atom_size, sfz_file_path);
}
else
{