From c31409d2429c19fdefd297ebf2ca104f1af440b5 Mon Sep 17 00:00:00 2001 From: Rafael Caricio Date: Sun, 26 Mar 2023 01:07:10 +0100 Subject: [PATCH] No need to stop pipeline inside signal handler --- src/main.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3c54871..9f7a4b1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -67,11 +67,8 @@ fn main() -> Result<()> { }); ctrlc::set_handler({ - let pipeline_weak = pipeline.downgrade(); let main_loop = main_loop.clone(); move || { - let pipeline = pipeline_weak.upgrade().unwrap(); - pipeline.set_state(gst::State::Null).unwrap(); main_loop.quit(); } })?;