From 4962bfdc5cb562e45cc987e92b31114fbddca00d Mon Sep 17 00:00:00 2001 From: dchansen06 <105574022+dchansen06@users.noreply.github.com> Date: Wed, 18 Sep 2024 21:26:04 -0700 Subject: [PATCH] Update main.rs --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 6c8d6d3..c400329 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,7 +42,7 @@ fn main() { println!("Reading port: {}", port); println!("Attempting: {}x{}", width, height); println!("Trying device: {}", video); - println!("See\n\t0.0.0.0:{}/snapshot.jpg?key={}\n\t0.0.0.0:{}/stream.mjpg?key={}\n", port, apikey, port, apikey); + println!("See\n\t0.0.0.0:{}/snapshot.jpg?key={}\n\t0.0.0.0:{}/stream.mjpg?key={}\n", port, apikey, port, apikey.lock().unwrap()); let listener = TcpListener::bind(format!("0.0.0.0:{}", port)).expect(&format!("Failed to get 0.0.0.0:{}", port)); let camera = Arc::new(Mutex::new(videoio::VideoCapture::new(video, videoio::CAP_ANY).expect("Failed to get video capture")));