diff options
author | David Robillard <d@drobilla.net> | 2015-12-04 18:48:51 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-12-04 20:59:35 -0500 |
commit | 59601f4e1cf94c0062e6e3d343822142ec5ffecb (patch) | |
tree | 30f703627a2d07b2b03b89c4252965be88013950 /src/instance.c | |
parent | df9e43c745dbded4c2bc0c857add921b4ca25820 (diff) | |
download | lilv-59601f4e1cf94c0062e6e3d343822142ec5ffecb.tar.gz lilv-59601f4e1cf94c0062e6e3d343822142ec5ffecb.tar.bz2 lilv-59601f4e1cf94c0062e6e3d343822142ec5ffecb.zip |
Do not instantiate plugin when data fails to parse
Diffstat (limited to 'src/instance.c')
-rw-r--r-- | src/instance.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/instance.c b/src/instance.c index 5092dcd..ff7b61f 100644 --- a/src/instance.c +++ b/src/instance.c @@ -26,6 +26,9 @@ lilv_plugin_instantiate(const LilvPlugin* plugin, const LV2_Feature*const* features) { lilv_plugin_load_if_necessary(plugin); + if (plugin->parse_errors) { + return NULL; + } LilvInstance* result = NULL; |