From a59599971bfd0517a4b31d0a1e7affde04d35561 Mon Sep 17 00:00:00 2001 From: jo Date: Sat, 25 Feb 2023 14:36:49 +0100 Subject: [PATCH] fix(playout): skip the identified queue instead of the current Calling queues.s0_skip, liquidsoap was actually calling queues.s8_skip, because the current queue was 8 --- playout/libretime_playout/liquidsoap/1.4/ls_script.liq | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/playout/libretime_playout/liquidsoap/1.4/ls_script.liq b/playout/libretime_playout/liquidsoap/1.4/ls_script.liq index 6469f8d33..3119ab565 100644 --- a/playout/libretime_playout/liquidsoap/1.4/ls_script.liq +++ b/playout/libretime_playout/liquidsoap/1.4/ls_script.liq @@ -15,7 +15,9 @@ sources = ref [] source_id = ref 0 def create_source() - l = request.equeue(id="s#{!source_id}", length=0.5) + this_source_id = !source_id + + l = request.equeue(id="s#{this_source_id}", length=0.5) l = audio_to_stereo(id="queue_src", l) l = cue_cut(l) @@ -28,8 +30,8 @@ def create_source() sources := list.append([l], !sources) server.register(namespace="queues", - "s#{!source_id}_skip", - fun (s) -> begin log("queues.s#{!source_id}_skip") + "s#{this_source_id}_skip", + fun (s) -> begin log("queues.s#{this_source_id}_skip") clear_queue(l) "Done" end)