aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ladspa/0003-plugindir.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-02-04 22:07:55 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-02-04 22:07:55 +0000
commitf08d5081d923805de4db493c424dc73b402d481b (patch)
treea84883f17dbf86df93c2fd040986fea2b2f4e1d7 /testing/ladspa/0003-plugindir.patch
parent40ca5d808acd1a84983977fff3505cf2ba20a83f (diff)
downloadaports-f08d5081d923805de4db493c424dc73b402d481b.tar.bz2
aports-f08d5081d923805de4db493c424dc73b402d481b.tar.xz
testing/ladspa: new aport
Linux Audio Developer's Simple Plug-in API, examples and tools http://www.ladspa.org/
Diffstat (limited to 'testing/ladspa/0003-plugindir.patch')
-rw-r--r--testing/ladspa/0003-plugindir.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/ladspa/0003-plugindir.patch b/testing/ladspa/0003-plugindir.patch
new file mode 100644
index 0000000000..bd78ee51fc
--- /dev/null
+++ b/testing/ladspa/0003-plugindir.patch
@@ -0,0 +1,42 @@
+From 8e18df685c5fe747c6d250460d265a402f7900b1 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Sat, 4 Feb 2012 22:05:24 +0000
+Subject: [PATCH 3/3] plugindir
+
+---
+ src/load.c | 2 ++
+ src/search.c | 5 +----
+ 2 files changed, 3 insertions(+), 4 deletions(-)
+
+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;
+--
+1.7.9
+