Skip to content

Commit

Permalink
Merge branch 'messmerd-get-factory-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
swesterfeld committed Nov 8, 2024
2 parents 64ccac1 + 69af871 commit 3c83adc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## SpectMorph 1.0.0 beta3

* Fix CLAP's get factory implementation (#30).

## SpectMorph 1.0.0 beta2

#### Updates for macOS
Expand Down
10 changes: 9 additions & 1 deletion clap/smclapplugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,15 @@ const struct clap_plugin_factory clap_factory = {
clap_create_plugin,
};

static const void *get_factory(const char *factory_id) { return &clap_factory; }
static const void *get_factory(const char *factory_id)
{
if (strcmp (factory_id, CLAP_PLUGIN_FACTORY_ID))
{
// Only clap_plugin_factory is supported
return nullptr;
}
return &clap_factory;
}

#ifdef SM_OS_WINDOWS
HMODULE hInstance;
Expand Down

0 comments on commit 3c83adc

Please sign in to comment.