Skip to content

Commit

Permalink
Merge branch 'fr462'
Browse files Browse the repository at this point in the history
  • Loading branch information
tedfelix committed Jun 19, 2024
2 parents 76e1148 + 9cb306b commit e9dfb94
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions src/gui/studio/AudioPluginLV2GUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,19 +134,23 @@ AudioPluginLV2GUI::AudioPluginLV2GUI(AudioPluginInstance *instance,
// Find the UI descriptor for uiUris.

m_uilib = dlopen(bpath.toStdString().c_str(), RTLD_LOCAL | RTLD_LAZY);
void* vpdf = dlsym(m_uilib, "lv2ui_descriptor");
LV2UI_DescriptorFunction pdf = (LV2UI_DescriptorFunction)vpdf;
int ui_index = 0;
while(true) {
const LV2UI_Descriptor* uidesci = (*pdf)(ui_index);
if (uidesci == nullptr) break;
if (QString(uidesci->URI) == uiUris)
{
m_uidesc = uidesci;
break;
if (m_uilib) {
void* vpdf = dlsym(m_uilib, "lv2ui_descriptor");
if (vpdf) {
LV2UI_DescriptorFunction pdf = (LV2UI_DescriptorFunction)vpdf;
int ui_index = 0;
while(true) {
const LV2UI_Descriptor* uidesci = (*pdf)(ui_index);
if (uidesci == nullptr) break;
if (QString(uidesci->URI) == uiUris)
{
m_uidesc = uidesci;
break;
}
ui_index++;
RG_DEBUG << "descriptor: " << m_uidesc;
}
ui_index++;
RG_DEBUG << "descriptor: " << m_uidesc;
}
}
}

Expand Down

0 comments on commit e9dfb94

Please sign in to comment.