feat: test-source fixes

This commit is contained in:
2024-11-13 16:06:52 +00:00
parent 6f618ef58f
commit 0b8742bd25
7 changed files with 71 additions and 32 deletions

View File

@ -64,7 +64,9 @@ impl HlsEgress {
opts.insert("hls_flags".to_string(), "delete_segments".to_string());
let muxer = unsafe {
let mut m = Muxer::new().with_output(&base, Some("hls"), Some(opts))?;
let mut m = Muxer::builder()
.with_output_path(base.to_str().unwrap(), Some("hls"), Some(opts))?
.build()?;
for e in encoded {
m.add_stream_encoder(e)?;
}