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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user