aboutsummaryrefslogtreecommitdiff
path: root/atom_inspector.c
diff options
context:
space:
mode:
Diffstat (limited to 'atom_inspector.c')
-rw-r--r--atom_inspector.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/atom_inspector.c b/atom_inspector.c
index 12cfb4d..6e7e56f 100644
--- a/atom_inspector.c
+++ b/atom_inspector.c
@@ -159,7 +159,12 @@ run(LV2_Handle instance, uint32_t nsamples)
// only serialize filtered events to UI
LV2_ATOM_SEQUENCE_FOREACH(handle->control, ev)
{
- if(true) //FIXME do filtering here
+ const LV2_Atom_Object *obj = (const LV2_Atom_Object *)&ev->body;
+
+ const bool is_time = lv2_atom_forge_is_object_type(&notify->forge, obj->atom.type)
+ && (obj->body.otype == handle->time_position);
+
+ if(!(!handle->state.time && is_time))
{
has_event = true;
if(notify->ref)