summaryrefslogtreecommitdiffstats
path: root/src/instance.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-12-04 18:48:51 -0500
committerDavid Robillard <d@drobilla.net>2015-12-04 20:59:35 -0500
commit59601f4e1cf94c0062e6e3d343822142ec5ffecb (patch)
tree30f703627a2d07b2b03b89c4252965be88013950 /src/instance.c
parentdf9e43c745dbded4c2bc0c857add921b4ca25820 (diff)
downloadlilv-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.c3
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;