Be slightly more verbose about vstfx_get_info errors.

git-svn-id: svn://localhost/ardour2/branches/3.0@11531 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington
2012-02-27 16:03:37 +00:00
parent af7494ceb2
commit 568f96d1ee
2 changed files with 5 additions and 4 deletions

View File

@@ -377,12 +377,14 @@ vstfx_get_info (char* dllpath)
return info;
}
if(!(h = vstfx_load(dllpath)))
if(!(h = vstfx_load(dllpath))) {
warning << "Cannot get LinuxVST information from " << dllpath << ": load failed." << endmsg;
return 0;
}
if(!(vstfx = vstfx_instantiate(h, simple_master_callback, 0))) {
vstfx_unload(h);
vstfx_error( "** ERROR ** VSTFXinfofile : Instantiate failed\n" );
warning << "Cannot get LinuxVST information from " << dllpath << ": instantiation failed." << endmsg;
return 0;
}
@@ -391,7 +393,7 @@ vstfx_get_info (char* dllpath)
if(!infofile) {
vstfx_close(vstfx);
vstfx_unload(h);
vstfx_error("cannot create new FST info file for plugin");
warning << "Cannot get LinuxVST information from " << dllpath << ": cannot create new FST info file." << endmsg;
return 0;
}

View File

@@ -696,7 +696,6 @@ PluginManager::lxvst_discover (string path)
char buf[32];
if ((finfo = vstfx_get_info (const_cast<char *> (path.c_str()))) == 0) {
warning << "Cannot get linuxVST information from " << path << endmsg;
return -1;
}