blob: c7d5012a4ab5c898590424c66095c91ea4bc39e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
Use a default ladspa path instead of failing when LADSPA_PATH is undefined
Forwarded: Yes
--- a/src/load.c
+++ b/src/load.c
@@ -54,6 +54,8 @@
to search. */
pcLADSPAPath = getenv("LADSPA_PATH");
+ if (!pcLADSPAPath)
+ pcLADSPAPath = "/usr/lib/ladspa";
if (pcLADSPAPath) {
--- a/src/search.c
+++ b/src/search.c
@@ -99,10 +99,10 @@
pcLADSPAPath = getenv("LADSPA_PATH");
if (!pcLADSPAPath) {
+ pcLADSPAPath = "/usr/lib/ladspa/";
fprintf(stderr,
"Warning: You do not have a LADSPA_PATH "
"environment variable set.\n");
- return;
}
pcStart = pcLADSPAPath;
|