aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--VERSION2
-rw-r--r--monitors_audio_wave.c9
-rw-r--r--monitors_midi_pianoroll.c6
3 files changed, 12 insertions, 5 deletions
diff --git a/VERSION b/VERSION
index 74799d8..aab9b57 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.127
+0.1.129
diff --git a/monitors_audio_wave.c b/monitors_audio_wave.c
index 6c9c480..02d61c8 100644
--- a/monitors_audio_wave.c
+++ b/monitors_audio_wave.c
@@ -159,8 +159,7 @@ _render(plughandle_t *handle)
|| !lv2_canvas_forge_fill(forge, urid)
|| !lv2_canvas_forge_save(forge, urid) )
{
- fprintf(stderr, "buffer overflow\n");
- //FIXME buffer overflow
+ _out_of_memory(handle);
return;
}
@@ -177,6 +176,7 @@ _render(plughandle_t *handle)
if( !lv2_canvas_forge_transform(forge, urid, xx, xy, x0, yy, yx, y0) )
{
_out_of_memory(handle);
+ return;
}
}
@@ -189,6 +189,7 @@ _render(plughandle_t *handle)
|| !lv2_canvas_forge_translate(forge, urid, -0.5f, -0.5f) )
{
_out_of_memory(handle);
+ return;
}
}
@@ -222,8 +223,7 @@ _render(plughandle_t *handle)
|| !lv2_canvas_forge_style(forge, urid, 0xffffffff)
|| !lv2_canvas_forge_stroke(forge, urid) )
{
- fprintf(stderr, "buffer overflow\n");
- //FIXME buffer overflow
+ _out_of_memory(handle);
return;
}
}
@@ -231,6 +231,7 @@ _render(plughandle_t *handle)
if( !lv2_canvas_forge_restore(forge, urid) )
{
_out_of_memory(handle);
+ return;
}
lv2_atom_forge_pop(forge, &frame);
diff --git a/monitors_midi_pianoroll.c b/monitors_midi_pianoroll.c
index b72e3cf..1844716 100644
--- a/monitors_midi_pianoroll.c
+++ b/monitors_midi_pianoroll.c
@@ -136,6 +136,7 @@ _render(plughandle_t *handle, int64_t frames)
|| !lv2_canvas_forge_save(forge, urid) )
{
_out_of_memory(handle);
+ return;
}
if(handle->state.hflip || handle->state.vflip)
@@ -151,6 +152,7 @@ _render(plughandle_t *handle, int64_t frames)
if( !lv2_canvas_forge_transform(forge, urid, xx, xy, x0, yy, yx, y0) )
{
_out_of_memory(handle);
+ return;
}
}
@@ -163,6 +165,7 @@ _render(plughandle_t *handle, int64_t frames)
|| !lv2_canvas_forge_translate(forge, urid, -0.5f, -0.5f) )
{
_out_of_memory(handle);
+ return;
}
}
@@ -194,6 +197,7 @@ _render(plughandle_t *handle, int64_t frames)
|| !lv2_canvas_forge_stroke(forge, urid) )
{
_out_of_memory(handle);
+ return;
}
}
@@ -228,6 +232,7 @@ _render(plughandle_t *handle, int64_t frames)
|| !lv2_canvas_forge_stroke(forge, urid) )
{
_out_of_memory(handle);
+ return;
}
}
else
@@ -240,6 +245,7 @@ _render(plughandle_t *handle, int64_t frames)
if( !lv2_canvas_forge_restore(forge, urid) )
{
_out_of_memory(handle);
+ return;
}
lv2_atom_forge_pop(forge, &frame);