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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
1 parent
7b376b4050
commit
f0f1269812
1 file changed
+4
-2
@@ -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<Duration>,
|
||||
) -> 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());
|
||||
|
||||
Reference in new issue
Block a user