summaryrefslogtreecommitdiff
path: root/libs/plugins
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-07-12 13:44:55 +0200
committerRobin Gareus <robin@gareus.org>2016-07-12 13:44:55 +0200
commit1f02dd2a85afd9a5593b635baedc5cbdfdffa9bd (patch)
tree69ac039058a22bd2fa9a18d49c86e2a3423b096c /libs/plugins
parent3c99ab0fb9da161bbce2ce6f02fb0607b1a2d2bb (diff)
fix compilation with lv2 < 1.10 (lv2 extended)
Diffstat (limited to 'libs/plugins')
-rw-r--r--libs/plugins/a-comp.lv2/a-comp.c6
-rw-r--r--libs/plugins/a-eq.lv2/a-eq.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/libs/plugins/a-comp.lv2/a-comp.c b/libs/plugins/a-comp.lv2/a-comp.c
index ba970c3ec9..4456a4f63d 100644
--- a/libs/plugins/a-comp.lv2/a-comp.c
+++ b/libs/plugins/a-comp.lv2/a-comp.c
@@ -87,8 +87,8 @@ typedef struct {
float old_yg;
#ifdef LV2_EXTENDED
- bool need_expose;
LV2_Inline_Display_Image_Surface surf;
+ bool need_expose;
cairo_surface_t* display;
LV2_Inline_Display* queue_draw;
uint32_t w, h;
@@ -124,7 +124,9 @@ instantiate(const LV2_Descriptor* descriptor,
acomp->srate = rate;
acomp->old_yl=acomp->old_y1=acomp->old_yg=0.f;
+#ifdef LV2_EXTENDED
acomp->need_expose = true;
+#endif
return (LV2_Handle)acomp;
}
@@ -648,10 +650,12 @@ render_inline (LV2_Handle instance, uint32_t w, uint32_t max_h)
static const void*
extension_data(const char* uri)
{
+#ifdef LV2_EXTENDED
static const LV2_Inline_Display_Interface display = { render_inline };
if (!strcmp(uri, LV2_INLINEDISPLAY__interface)) {
return &display;
}
+#endif
return NULL;
}
diff --git a/libs/plugins/a-eq.lv2/a-eq.c b/libs/plugins/a-eq.lv2/a-eq.c
index 30265d7955..c0b7259ed5 100644
--- a/libs/plugins/a-eq.lv2/a-eq.c
+++ b/libs/plugins/a-eq.lv2/a-eq.c
@@ -143,7 +143,9 @@ instantiate(const LV2_Descriptor* descriptor,
linear_svf_reset(&aeq->v_filter[i]);
aeq->need_expose = true;
+#ifdef LV2_EXTENDED
aeq->display = NULL;
+#endif
return (LV2_Handle)aeq;
}