From 0f4ee73f1f66a8230e997a48dfa44ee0fbd2977c Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 18:03:17 +0000 Subject: Apply patch ladspa-1.13-plugindir.patch patch_name: ladspa-1.13-plugindir.patch present_in_specfile: true no_prefix: true --- diff --git a/src/load.c b/src/load.c index c2a5aa7..e221c10 100644 --- a/src/load.c +++ b/src/load.c @@ -54,6 +54,8 @@ dlopenLADSPA(const char * pcFilename, int iFlag) { to search. */ pcLADSPAPath = getenv("LADSPA_PATH"); + if (! pcLADSPAPath) + pcLADSPAPath = PLUGINDIR; if (pcLADSPAPath) { diff --git a/src/search.c b/src/search.c index 0006712..a6b2e78 100644 --- a/src/search.c +++ b/src/search.c @@ -99,10 +99,7 @@ LADSPAPluginSearch(LADSPAPluginSearchCallbackFunction fCallbackFunction) { pcLADSPAPath = getenv("LADSPA_PATH"); if (!pcLADSPAPath) { - fprintf(stderr, - "Warning: You do not have a LADSPA_PATH " - "environment variable set.\n"); - return; + pcLADSPAPath = PLUGINDIR; } pcStart = pcLADSPAPath;