Browse Source

Fix running carla-single with lv2 plugins without LV2_PATH set

tags/1.9.7
falkTX 9 years ago
parent
commit
f486024122
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      source/backend/plugin/CarlaPluginLV2.cpp

+ 4
- 1
source/backend/plugin/CarlaPluginLV2.cpp View File

@@ -31,6 +31,7 @@
#include "Lv2AtomRingBuffer.hpp"

#include "../engine/CarlaEngineOsc.hpp"
#include "../modules/lilv/config/lilv_config.h"

extern "C" {
#include "rtmempool/rtmempool-lv2.h"
@@ -4706,8 +4707,10 @@ public:

if (pData->engine->getOptions().pathLV2 != nullptr && pData->engine->getOptions().pathLV2[0] != '\0')
lv2World.initIfNeeded(pData->engine->getOptions().pathLV2);
else if (const char* const LV2_PATH = std::getenv("LV2_PATH"))
lv2World.initIfNeeded(LV2_PATH);
else
lv2World.initIfNeeded(std::getenv("LV2_PATH"));
lv2World.initIfNeeded(LILV_DEFAULT_LV2_PATH);

// ---------------------------------------------------------------
// get plugin from lv2_rdf (lilv)


Loading…
Cancel
Save