Merge pull request #588 from jb-alvarado/master

correct decoder termination on ingest stream, fix #582
This commit is contained in:
jb-alvarado 2024-04-10 14:13:44 +00:00 committed by GitHub
commit a810872b0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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