Skip to content

Commit

Permalink
CLAP: Fix get_factory
Browse files Browse the repository at this point in the history
  • Loading branch information
messmerd committed Nov 7, 2024
1 parent 64ccac1 commit 863eea1
Showing 1 changed file with 9 additions and 1 deletion.
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 863eea1

Please sign in to comment.