From 7b616743f679b34f7daa94526dda58e3fafeb7cc Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Thu, 7 Apr 2022 17:57:13 +0200 Subject: [PATCH] fix live ingest --- src/output/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/output/mod.rs b/src/output/mod.rs index 4773e0ef..b3ba158d 100644 --- a/src/output/mod.rs +++ b/src/output/mod.rs @@ -89,8 +89,6 @@ pub fn player( let config = GlobalConfig::global(); let dec_settings = config.processing.clone().settings.unwrap(); let ff_log_format = format!("level+{}", config.logging.ffmpeg_level.to_lowercase()); - - let server_is_running: Arc> = Arc::new(Mutex::new(false)); let mut buffer: [u8; 65088] = [0; 65088]; let mut live_on = false; let playlist_init = playout_stat.list_init.clone(); @@ -189,7 +187,7 @@ pub fn player( }; loop { - if *server_is_running.lock().unwrap() { + if *proc_control.server_is_running.lock().unwrap() { if !live_on { info!("Switch from {} to live ingest", config.processing.mode);