From 466ed1f43ad99a6c05cb75afeed0b09c9f5c13b4 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sun, 22 Sep 2024 01:31:37 +0000 Subject: [PATCH] added 'this worked in the past' to error message --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 71da611..b64aa19 100644 --- a/src/main.rs +++ b/src/main.rs @@ -55,7 +55,7 @@ async fn main() { // frame buffers from the gstreamer pipeline to send over the webrtc connection let (to_stream, stream) = tokio::sync::mpsc::channel::(10); - let rt = tokio::runtime::Handle::current(); + // let rt = tokio::runtime::Handle::current(); let stream: Arc>> = Arc::new(tokio::sync::Mutex::new(stream)); @@ -90,7 +90,7 @@ async fn main() { // Start the gstreamer pipeline if let Err(e) = pipeline.pipeline.set_state(State::Playing) { - panic!("Could not start pipeline! {e}"); + panic!("Could not start pipeline! Is there a video source connected?\nError: {e}"); } let cs2 = cancel_tasks.clone();