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();