summaryrefslogtreecommitdiff
path: root/libs/vamp-sdk/src/vamp-sdk/PluginAdapter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/vamp-sdk/src/vamp-sdk/PluginAdapter.cpp')
-rw-r--r--libs/vamp-sdk/src/vamp-sdk/PluginAdapter.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/libs/vamp-sdk/src/vamp-sdk/PluginAdapter.cpp b/libs/vamp-sdk/src/vamp-sdk/PluginAdapter.cpp
index f8d4bf2d28..5a4593dde8 100644
--- a/libs/vamp-sdk/src/vamp-sdk/PluginAdapter.cpp
+++ b/libs/vamp-sdk/src/vamp-sdk/PluginAdapter.cpp
@@ -39,8 +39,8 @@
#include <cstring>
#include <cstdlib>
-#if ( VAMP_SDK_MAJOR_VERSION != 2 || VAMP_SDK_MINOR_VERSION != 0 )
-#error Incorrect Vamp SDK header included (not the expected 2.0 SDK)
+#if ( VAMP_SDK_MAJOR_VERSION != 2 || VAMP_SDK_MINOR_VERSION != 2 )
+#error Unexpected version of Vamp SDK header included
#endif
@@ -168,6 +168,11 @@ PluginAdapterBase::Impl::getDescriptor()
if (m_populated) return &m_descriptor;
Plugin *plugin = m_base->createPlugin(48000);
+
+ if (!plugin) {
+ std::cerr << "PluginAdapterBase::Impl::getDescriptor: Failed to create plugin" << std::endl;
+ return 0;
+ }
if (plugin->getVampApiVersion() != VAMP_API_VERSION) {
std::cerr << "Vamp::PluginAdapterBase::Impl::getDescriptor: ERROR: "
@@ -583,7 +588,7 @@ PluginAdapterBase::Impl::vampGetRemainingFeatures(VampPluginHandle handle)
}
void
-PluginAdapterBase::Impl::vampReleaseFeatureSet(VampFeatureList */*fs*/)
+PluginAdapterBase::Impl::vampReleaseFeatureSet(VampFeatureList *fs)
{
#ifdef DEBUG_PLUGIN_ADAPTER
std::cerr << "PluginAdapterBase::Impl::vampReleaseFeatureSet" << std::endl;