diff options
Diffstat (limited to 'src/interpolator.c')
-rw-r--r-- | src/interpolator.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/interpolator.c b/src/interpolator.c index 52a6c37..24fa927 100644 --- a/src/interpolator.c +++ b/src/interpolator.c @@ -79,6 +79,9 @@ instantiate(const LV2_Descriptor* descriptor, const LV2_Feature* const* features) { Interpolator* plugin = (Interpolator*)malloc(sizeof(Interpolator)); + if (!plugin) { + return NULL; + } return (LV2_Handle)plugin; } @@ -93,8 +96,8 @@ activate(LV2_Handle instance) } static void -runInterpolator(LV2_Handle instance, - uint32_t sample_count) +run(LV2_Handle instance, + uint32_t sample_count) { Interpolator* plugin = (Interpolator*)instance; @@ -121,11 +124,11 @@ runInterpolator(LV2_Handle instance, } static const LV2_Descriptor descriptor = { - "http://drobilla.net/plugins/blip/interpolator", + "http://drobilla.net/plugins/blop/interpolator", instantiate, connect_port, activate, - runInterpolator, + run, NULL, cleanup, NULL, |