diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-11-06 00:43:35 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-11-06 00:46:38 +0100 |
commit | 772d8b3642fbce353d45f1e44982ea7a3b189801 (patch) | |
tree | 22846357155d159c84154c1f08b4e1439e421851 /testing/ladspa/fallback-ladspa-path.patch | |
parent | 1ce86fca5813fd1036cc9d50ac2fcbe5c4c779f2 (diff) | |
download | aports-772d8b3642fbce353d45f1e44982ea7a3b189801.tar.bz2 aports-772d8b3642fbce353d45f1e44982ea7a3b189801.tar.xz |
testing/ladspa: new aport
Diffstat (limited to 'testing/ladspa/fallback-ladspa-path.patch')
-rw-r--r-- | testing/ladspa/fallback-ladspa-path.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/ladspa/fallback-ladspa-path.patch b/testing/ladspa/fallback-ladspa-path.patch new file mode 100644 index 0000000000..a0a3c43a36 --- /dev/null +++ b/testing/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; |