Re: [linux-audio-dev] a patch against ladspa-sdk to add default paths

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] a patch against ladspa-sdk to add default paths
From: Samuel S Chessman (chessman_AT_tux.org)
Date: Thu Feb 01 2001 - 22:05:19 EET


On Fri, 2 Feb 2001, Junichi Uekawa wrote:

>
> Hello,
>
> because I was rather annoyed by the default behavior of listplugin etc,
> I added some default path for them.
>

Perhaps you meant:
     pcLADSPAPath = getenv("LADSPA_PATH");
+ if (! pcLADSPAPath)
and not
     pcLADSPAPath = getenv("LADSPA_PATH");
+ if (pcLADSPAPath)

It makes more sense to set it to default if getenv() returns NULL.

--- ladspa-sdk-0.orig/src/load.c
+++ ladspa-sdk-0/src/load.c
@@ -54,6 +54,8 @@
        to search. */

     pcLADSPAPath = getenv("LADSPA_PATH");
+ if (! pcLADSPAPath)
+ pcLADSPAPath="/usr/lib/ladspa"; /* added by Junichi Uekawa (dancer_AT_debian.org) */

     if (pcLADSPAPath) {

-- 
   Sam Chessman                                               chessman_AT_tux.org
        Disruptive technologies always appear to incumbents as toys.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Thu Feb 01 2001 - 22:31:27 EET