summaryrefslogtreecommitdiffstats
path: root/src/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.c')
-rw-r--r--src/lib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib.c b/src/lib.c
index b2a93bb..b2ad20c 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -101,9 +101,12 @@ lilv_lib_get_plugin(LilvLib* lib, uint32_t index)
{
if (lib->lv2_descriptor) {
return lib->lv2_descriptor(index);
- } else if (lib->desc) {
+ }
+
+ if (lib->desc) {
return lib->desc->get_plugin(lib->desc->handle, index);
}
+
return NULL;
}