ladspa-fallback-ladspa-path.patch 931 B

12345678910111213141516171819202122232425262728
  1. diff -upr ladspa_sdk.orig/src/load.c ladspa_sdk/src/load.c
  2. --- ladspa_sdk.orig/src/load.c 2012-09-26 07:37:24.000000000 +0300
  3. +++ ladspa_sdk/src/load.c 2012-09-26 07:38:58.000000000 +0300
  4. @@ -54,6 +54,8 @@ dlopenLADSPA(const char * pcFilename, in
  5. to search. */
  6. pcLADSPAPath = getenv("LADSPA_PATH");
  7. + if (! pcLADSPAPath)
  8. + pcLADSPAPath = "/usr/lib/ladspa";
  9. if (pcLADSPAPath) {
  10. diff -upr ladspa_sdk.orig/src/search.c ladspa_sdk/src/search.c
  11. --- ladspa_sdk.orig/src/search.c 2012-09-26 07:37:24.000000000 +0300
  12. +++ ladspa_sdk/src/search.c 2012-09-26 07:38:46.000000000 +0300
  13. @@ -99,10 +99,7 @@ LADSPAPluginSearch(LADSPAPluginSearchCal
  14. pcLADSPAPath = getenv("LADSPA_PATH");
  15. if (!pcLADSPAPath) {
  16. - fprintf(stderr,
  17. - "Warning: You do not have a LADSPA_PATH "
  18. - "environment variable set.\n");
  19. - return;
  20. + pcLADSPAPath = "/usr/lib/ladspa";
  21. }
  22. pcStart = pcLADSPAPath;