mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 05:28:48 +00:00
hacked around LADSPA_PATH as suggested to wingo
Original commit message from CVS: hacked around LADSPA_PATH as suggested to wingo
This commit is contained in:
parent
deef2f51cd
commit
f4598130ca
2 changed files with 15 additions and 2 deletions
|
@ -9,6 +9,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <glib.h>
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
@ -53,7 +54,12 @@ dlopenLADSPA(const char * pcFilename, int iFlag) {
|
||||||
LD_LIBRARY_PATH, whereas the LADSPA_PATH is the correct place
|
LD_LIBRARY_PATH, whereas the LADSPA_PATH is the correct place
|
||||||
to search. */
|
to search. */
|
||||||
|
|
||||||
pcLADSPAPath = getenv("LADSPA_PATH");
|
/* thomasvs: I'm sorry, but I'm going to add glib stuff here.
|
||||||
|
* I'm appending logical values for LADSPA_PATH here
|
||||||
|
*/
|
||||||
|
|
||||||
|
pcLADSPAPath = g_strdup_printf ("%s:/usr/lib/ladspa:/usr/local/lib/ladspa",
|
||||||
|
getenv("LADSPA_PATH"));
|
||||||
|
|
||||||
if (pcLADSPAPath) {
|
if (pcLADSPAPath) {
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <glib.h>
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
@ -96,7 +97,13 @@ LADSPAPluginSearch(LADSPAPluginSearchCallbackFunction fCallbackFunction) {
|
||||||
const char * pcLADSPAPath;
|
const char * pcLADSPAPath;
|
||||||
const char * pcStart;
|
const char * pcStart;
|
||||||
|
|
||||||
pcLADSPAPath = getenv("LADSPA_PATH");
|
/* thomasvs: I'm sorry, but I'm going to add glib stuff here.
|
||||||
|
* I'm appending logical values for LADSPA_PATH here
|
||||||
|
*/
|
||||||
|
|
||||||
|
pcLADSPAPath = g_strdup_printf ("%s:/usr/lib/ladspa:/usr/local/lib/ladspa",
|
||||||
|
getenv("LADSPA_PATH"));
|
||||||
|
|
||||||
if (!pcLADSPAPath) {
|
if (!pcLADSPAPath) {
|
||||||
/* fprintf(stderr, */
|
/* fprintf(stderr, */
|
||||||
/* "Warning: You do not have a LADSPA_PATH " */
|
/* "Warning: You do not have a LADSPA_PATH " */
|
||||||
|
|
Loading…
Reference in a new issue