aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-12-24 16:50:36 +0000
committerDavid Robillard <d@drobilla.net>2013-12-24 16:50:36 +0000
commit4e4d8eff4b781cd8c065aba38783e121ab91765c (patch)
treea1cee37ffbfccda06f56153f6487ad2f4e9b47e6 /plugins
parenta6521f912b24bcf40c204303139eb2a104d5f85d (diff)
downloadlv2-4e4d8eff4b781cd8c065aba38783e121ab91765c.tar.xz
Fix vector size calculation (patch from Robin Gareus).
Diffstat (limited to 'plugins')
-rw-r--r--plugins/eg05-scope.lv2/examploscope_ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/eg05-scope.lv2/examploscope_ui.c b/plugins/eg05-scope.lv2/examploscope_ui.c
index 3e014f0..4061ff9 100644
--- a/plugins/eg05-scope.lv2/examploscope_ui.c
+++ b/plugins/eg05-scope.lv2/examploscope_ui.c
@@ -553,7 +553,7 @@ recv_raw_audio(EgScopeUI* ui, const LV2_Atom_Object* obj)
}
// Number of elements = (total size - header size) / element size
- const size_t n_elem = ((data_val->size - sizeof(LV2_Atom_Vector))
+ const size_t n_elem = ((data_val->size - sizeof(LV2_Atom_Vector_Body))
/ sizeof(float));
// Float elements immediately follow the vector body header