From 568f96d1ee8392eb022254c21c0b431e6775fd1a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 27 Feb 2012 16:03:37 +0000 Subject: [PATCH] Be slightly more verbose about vstfx_get_info errors. git-svn-id: svn://localhost/ardour2/branches/3.0@11531 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/linux_vst_info_file.cc | 8 +++++--- libs/ardour/plugin_manager.cc | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libs/ardour/linux_vst_info_file.cc b/libs/ardour/linux_vst_info_file.cc index 58954c7261..aaa605eba0 100644 --- a/libs/ardour/linux_vst_info_file.cc +++ b/libs/ardour/linux_vst_info_file.cc @@ -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; } diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc index 71b630c44d..82d5b4748b 100644 --- a/libs/ardour/plugin_manager.cc +++ b/libs/ardour/plugin_manager.cc @@ -696,7 +696,6 @@ PluginManager::lxvst_discover (string path) char buf[32]; if ((finfo = vstfx_get_info (const_cast (path.c_str()))) == 0) { - warning << "Cannot get linuxVST information from " << path << endmsg; return -1; }