added 'this worked in the past' to error message

This commit is contained in:
Nickiel12 2024-09-22 01:31:37 +00:00
parent c029d6ccc5
commit 466ed1f43a

View file

@ -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::<Buffer>(10);
let rt = tokio::runtime::Handle::current();
// let rt = tokio::runtime::Handle::current();
let stream: Arc<tokio::sync::Mutex<tokio::sync::mpsc::Receiver<Buffer>>> =
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();