feat: cleanup stream on end

fix: audio codecs
fix: hls segmenter
This commit is contained in:
2024-11-21 22:08:47 +00:00
parent f192a915e0
commit 9937f9a6f9
16 changed files with 131 additions and 54 deletions

View File

@ -38,9 +38,16 @@ pub async fn spawn_pipeline(
std::thread::spawn(move || unsafe {
match PipelineRunner::new(handle, out_dir, seer, info, reader) {
Ok(mut pl) => loop {
if let Err(e) = pl.run() {
error!("Pipeline run failed: {}", e);
break;
match pl.run() {
Ok(c) => {
if !c {
break;
}
}
Err(e) => {
error!("Pipeline run failed: {}", e);
break;
}
}
},
Err(e) => {