From f0f12698121a962bc33169a4a6a809748a9a6014 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 27 Sep 2026 08:34:46 +0000 Subject: [PATCH] voelinctl: number layers before the source is built Layer ids given by position were assigned after the placeholder source was created, so its frames carried id 65535 and no viewer got video. Found streaming placeholder layers through the TeamSpeak 6 dev server. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G --- tools/voelinctl/src/stream.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/voelinctl/src/stream.rs b/tools/voelinctl/src/stream.rs index e2fa291..00e8e8a 100644 --- a/tools/voelinctl/src/stream.rs +++ b/tools/voelinctl/src/stream.rs @@ -172,6 +172,9 @@ pub async fn run(con: &mut Connection, args: &StreamArgs) -> Result<()> { simulcast: _, placeholder, } => { + let mut layers = layers.clone(); + number_layers(&mut layers); + let layers = &layers; for l in layers { println!( "layer {}: {}, {}, needs {}{}", @@ -524,12 +527,11 @@ fn end_text(reason: &EndReason) -> String { async fn start( con: &mut Connection, driver: &mut Driver, - mut options: StreamerOptions, + options: StreamerOptions, mut source: Source, length: Option, ) -> Result<()> { let auto_accept = options.auto_accept; - number_layers(&mut options.layers); driver.streams.start(options)?; let deadline = length.map(|l| Instant::now() + l); let mut tick = tokio::time::interval(source.frames().interval());