From 07d56428c7f1076ae0e6a60f89108077181761de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 9 Jun 2010 09:41:20 +0000 Subject: got rid of the "no LADSPA_PATH" warning svn path=/trunk/externals/plugin~/; revision=13625 --- jsearch.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/jsearch.c b/jsearch.c index 454cedf..82a840c 100644 --- a/jsearch.c +++ b/jsearch.c @@ -70,20 +70,20 @@ LADSPADirectoryPluginSearch (const char * pcDirectory, dlerror(); fDescriptorFunction - = (LADSPA_Descriptor_Function)dlsym(pvPluginHandle, - "ladspa_descriptor"); + = (LADSPA_Descriptor_Function)dlsym(pvPluginHandle, + "ladspa_descriptor"); if (dlerror() == NULL && fDescriptorFunction) { - /* We've successfully found a ladspa_descriptor function. Pass + /* We've successfully found a ladspa_descriptor function. Pass it to the callback function. */ - fCallbackFunction(pcFilename, - pvPluginHandle, - fDescriptorFunction, - user_data); - dlclose (pvPluginHandle); + fCallbackFunction(pcFilename, + pvPluginHandle, + fDescriptorFunction, + user_data); + dlclose (pvPluginHandle); } else { - /* It was a library, but not a LADSPA one. Unload it. */ - dlclose(pcFilename); + /* It was a library, but not a LADSPA one. Unload it. */ + dlclose(pcFilename); } } } @@ -103,7 +103,7 @@ LADSPAPluginSearch(LADSPAPluginSearchCallbackFunction fCallbackFunction, pcLADSPAPath = getenv("LADSPA_PATH"); if (!pcLADSPAPath) { - fprintf(stderr, "Warning: no LADSPA_PATH, assuming /usr/lib/ladspa:/usr/local/lib/ladspa\n"); + //fprintf(stderr, "Warning: no LADSPA_PATH, assuming /usr/lib/ladspa:/usr/local/lib/ladspa\n"); pcLADSPAPath = "/usr/lib/ladspa:/usr/local/lib/ladspa"; } -- cgit v1.2.1