aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-11-15 20:38:43 -0500
committerDavid Robillard <d@drobilla.net>2024-11-24 19:01:17 -0500
commitfb192806333ca88d5acb53b849f268611773230d (patch)
tree5dc3197e1544a72dd9b64bc805f309c9f816ae05 /src/jalv.c
parente4eaf9b181c121a794f2acaea6e51aeaaf4ecffb (diff)
downloadjalv-fb192806333ca88d5acb53b849f268611773230d.tar.gz
jalv-fb192806333ca88d5acb53b849f268611773230d.tar.bz2
jalv-fb192806333ca88d5acb53b849f268611773230d.zip
Fix Jack latency recomputation when plugin latency changes
Paul Davis says "jack_recompute_total_latencies() is a server call. It is not legal to make server calls from within a server callback (like the process callback)."
Diffstat (limited to 'src/jalv.c')
-rw-r--r--src/jalv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jalv.c b/src/jalv.c
index ea0e13b..beb36ca 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -737,6 +737,8 @@ jalv_update(Jalv* jalv)
sizeof(LV2_Atom) + msg->atom.size,
jalv->urids.atom_eventTransfer,
&msg->atom);
+ } else if (header.type == LATENCY_CHANGE) {
+ jalv_backend_recompute_latencies(jalv);
} else {
return ring_error("Unknown message type received from process ring\n");
}