summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/ladspa/hardcode-path.patch
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-02-14 11:07:02 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-02-14 11:07:02 (GMT)
commita1f1b06ebbe1fa0c63f21480ea5504e6f4dbebd7 (patch)
tree2b288f8bdeb41a2ce218a536a13efbcb8db30d00 /abs/extra-testing/ladspa/hardcode-path.patch
parent9e3255d1a99f826d856061c25715d5341c28a119 (diff)
downloadlinhes_pkgbuild-a1f1b06ebbe1fa0c63f21480ea5504e6f4dbebd7.zip
linhes_pkgbuild-a1f1b06ebbe1fa0c63f21480ea5504e6f4dbebd7.tar.gz
linhes_pkgbuild-a1f1b06ebbe1fa0c63f21480ea5504e6f4dbebd7.tar.bz2
For volume leveling.
Diffstat (limited to 'abs/extra-testing/ladspa/hardcode-path.patch')
-rw-r--r--abs/extra-testing/ladspa/hardcode-path.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/abs/extra-testing/ladspa/hardcode-path.patch b/abs/extra-testing/ladspa/hardcode-path.patch
new file mode 100644
index 0000000..821c200
--- /dev/null
+++ b/abs/extra-testing/ladspa/hardcode-path.patch
@@ -0,0 +1,28 @@
+--- src/search.c.orig 2008-11-07 00:38:18.000000000 +0100
++++ src/search.c 2008-11-07 00:50:51.000000000 +0100
+@@ -83,6 +83,8 @@
+ dlclose(pcFilename);
+ free(pcFilename);
+ }
++ } else {
++ free(pcFilename);
+ }
+ }
+ }
+@@ -99,13 +101,10 @@
+
+ pcLADSPAPath = getenv("LADSPA_PATH");
+ if (!pcLADSPAPath) {
+- fprintf(stderr,
+- "Warning: You do not have a LADSPA_PATH "
+- "environment variable set.\n");
+- return;
++ pcStart = "/usr/lib/ladspa/";
++ } else {
++ pcStart = pcLADSPAPath;
+ }
+-
+- pcStart = pcLADSPAPath;
+ while (*pcStart != '\0') {
+ pcEnd = pcStart;
+ while (*pcEnd != ':' && *pcEnd != '\0')