aboutsummaryrefslogtreecommitdiffstats
path: root/src/jack.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-11-15 11:56:18 -0500
committerDavid Robillard <d@drobilla.net>2024-11-24 18:59:59 -0500
commita584a1f33002f9fefda29842f0ec5f58316252af (patch)
tree7fa5466b3ea0657986e7c8caeb629af92e553cf1 /src/jack.c
parent7ab8a8f8771aed943e1e154c7a7c7040f7e7be3b (diff)
downloadjalv-a584a1f33002f9fefda29842f0ec5f58316252af.tar.gz
jalv-a584a1f33002f9fefda29842f0ec5f58316252af.tar.bz2
jalv-a584a1f33002f9fefda29842f0ec5f58316252af.zip
Avoid querying the lilv model in the process callback
Diffstat (limited to 'src/jack.c')
-rw-r--r--src/jack.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/jack.c b/src/jack.c
index fd7a6f1..7971987 100644
--- a/src/jack.c
+++ b/src/jack.c
@@ -202,8 +202,7 @@ jack_process_cb(jack_nframes_t nframes, void* data)
for (uint32_t p = 0; p < jalv->num_ports; ++p) {
struct Port* const port = &jalv->ports[p];
if (port->flow == FLOW_OUTPUT && port->type == TYPE_CONTROL &&
- lilv_port_has_property(
- jalv->plugin, port->lilv_port, jalv->nodes.lv2_reportsLatency)) {
+ port->reports_latency) {
if (jalv->plugin_latency != port->control) {
jalv->plugin_latency = port->control;
jack_recompute_total_latencies(client);