Browse Source

Merge branch '1.0.x'

tags/1.9.4
falkTX 11 years ago
parent
commit
24f33c552e
1 changed files with 9 additions and 16 deletions
  1. +9
    -16
      source/bridges/CarlaBridgeUI-LV2.cpp

+ 9
- 16
source/bridges/CarlaBridgeUI-LV2.cpp View File

@@ -434,22 +434,15 @@ public:

if (fDescriptor->extension_data != nullptr)
{
for (uint32_t i=0; i < fRdfUiDescriptor->ExtensionCount; ++i)
{
if (std::strcmp(fRdfUiDescriptor->Extensions[i], LV2_PROGRAMS__UIInterface) == 0)
{
fExt.options = (const LV2_Options_Interface*)fDescriptor->extension_data(LV2_OPTIONS__interface);
fExt.idle = (const LV2UI_Idle_Interface*)fDescriptor->extension_data(LV2_UI__idleInterface);
fExt.programs = (const LV2_Programs_UI_Interface*)fDescriptor->extension_data(LV2_PROGRAMS__UIInterface);

// check if invalid
if (fExt.idle != nullptr && fExt.idle->idle == nullptr)
fExt.idle = nullptr;

if (fExt.programs != nullptr && fExt.programs->select_program == nullptr)
fExt.programs = nullptr;
}
}
fExt.programs = (const LV2_Programs_UI_Interface*)fDescriptor->extension_data(LV2_PROGRAMS__UIInterface);
fExt.options = (const LV2_Options_Interface*)fDescriptor->extension_data(LV2_OPTIONS__interface);
fExt.idle = (const LV2UI_Idle_Interface*)fDescriptor->extension_data(LV2_UI__idleInterface);

// check if invalid
if (fExt.programs != nullptr && fExt.programs->select_program == nullptr)
fExt.programs = nullptr;
if (fExt.idle != nullptr && fExt.idle->idle == nullptr)
fExt.idle = nullptr;
}

return true;


Loading…
Cancel
Save