diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-18 20:15:07 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-18 20:15:07 -0500 |
commit | 78a06826be274bb4aded8ad5f946a873253db0f9 (patch) | |
tree | 6fadefabe4e00cc019047fd879ee17116ecccae1 /user/ladspa/fallback-ladspa-path.patch | |
parent | a21a34f267c015fb8431658665d48ed8c68d2d5e (diff) | |
download | packages-78a06826be274bb4aded8ad5f946a873253db0f9.tar.gz packages-78a06826be274bb4aded8ad5f946a873253db0f9.tar.bz2 packages-78a06826be274bb4aded8ad5f946a873253db0f9.tar.xz packages-78a06826be274bb4aded8ad5f946a873253db0f9.zip |
user/ladspa: pull in, modernise, fix up
Diffstat (limited to 'user/ladspa/fallback-ladspa-path.patch')
-rw-r--r-- | user/ladspa/fallback-ladspa-path.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/user/ladspa/fallback-ladspa-path.patch b/user/ladspa/fallback-ladspa-path.patch new file mode 100644 index 000000000..a0a3c43a3 --- /dev/null +++ b/user/ladspa/fallback-ladspa-path.patch @@ -0,0 +1,27 @@ +diff -upr ladspa_sdk.orig/src/load.c ladspa_sdk/src/load.c +--- ./load.c 2012-09-26 07:37:24.000000000 +0300 ++++ ./load.c 2012-09-26 07:38:58.000000000 +0300 +@@ -54,6 +54,8 @@ dlopenLADSPA(const char * pcFilename, in + to search. */ + + pcLADSPAPath = getenv("LADSPA_PATH"); ++ if (! pcLADSPAPath) ++ pcLADSPAPath = "/usr/lib/ladspa"; + + if (pcLADSPAPath) { + +diff -upr ladspa_sdk.orig/src/search.c ladspa_sdk/src/search.c +--- ./search.c 2012-09-26 07:37:24.000000000 +0300 ++++ ./search.c 2012-09-26 07:38:46.000000000 +0300 +@@ -99,10 +99,7 @@ LADSPAPluginSearch(LADSPAPluginSearchCal + + pcLADSPAPath = getenv("LADSPA_PATH"); + if (!pcLADSPAPath) { +- fprintf(stderr, +- "Warning: You do not have a LADSPA_PATH " +- "environment variable set.\n"); +- return; ++ pcLADSPAPath = "/usr/lib/ladspa"; + } + + pcStart = pcLADSPAPath; |