From d52d38ccdc9bc38fe5c62eb2458be30b3cf6ca59 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 16 Nov 2024 18:25:20 -0500 Subject: Only send control messages to designated lv2:control ports --- src/jack.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/jack.c') diff --git a/src/jack.c b/src/jack.c index f37d702..a138f57 100644 --- a/src/jack.c +++ b/src/jack.c @@ -191,15 +191,15 @@ jack_process_cb(jack_nframes_t nframes, void* data) jalv->instance, p, jack_port_get_buffer(port->sys_port, nframes)); } else if (port->type == TYPE_EVENT && port->flow == FLOW_INPUT) { lv2_evbuf_reset(port->evbuf, true); - - // Write transport change event if applicable LV2_Evbuf_Iterator iter = lv2_evbuf_begin(port->evbuf); - if (xport_changed) { + + if (port->is_primary && xport_changed) { + // Write new transport position lv2_evbuf_write( &iter, 0, 0, lv2_pos->type, lv2_pos->size, LV2_ATOM_BODY(lv2_pos)); } - if (jalv->request_update) { + if (port->is_primary && jalv->request_update) { // Plugin state has changed, request an update jalv_write_get_message(&iter, &jalv->urids); } -- cgit v1.2.1