From 496cd44c424044a7fb144e9f1389ad4db37cbfba Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Wed, 10 Apr 2024 16:04:53 +0200 Subject: [PATCH] correct decoder termination on ingest stream, fix #582 --- ffplayout-engine/src/output/hls.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ffplayout-engine/src/output/hls.rs b/ffplayout-engine/src/output/hls.rs index c33648f6..7c6e118b 100644 --- a/ffplayout-engine/src/output/hls.rs +++ b/ffplayout-engine/src/output/hls.rs @@ -109,7 +109,7 @@ fn ingest_to_hls_server( info!("Switch from {} to live ingest", config.processing.mode); - if let Err(e) = proc_control.stop(Encoder) { + if let Err(e) = proc_control.stop(Decoder) { error!("{e}"); } } @@ -238,11 +238,11 @@ pub fn write_hls( .stderr(Stdio::piped()) .spawn() { + Ok(proc) => proc, Err(e) => { error!("couldn't spawn ffmpeg process: {e}"); panic!("couldn't spawn ffmpeg process: {e}") } - Ok(proc) => proc, }; let enc_err = BufReader::new(dec_proc.stderr.take().unwrap());