diff --git a/mux/fmp4/Cargo.toml b/mux/fmp4/Cargo.toml index e27a9114..39c17742 100644 --- a/mux/fmp4/Cargo.toml +++ b/mux/fmp4/Cargo.toml @@ -26,7 +26,7 @@ path = "src/lib.rs" gst-app = { workspace = true, features = ["v1_18"] } gst-check = { workspace = true, features = ["v1_18"] } m3u8-rs = "5.0" -chrono = "0.4" +chrono = "0.4.35" dash-mpd = { version = "0.15", default-features = false } quick-xml = { version = "0.31", features = ["serialize"] } serde = "1" diff --git a/mux/fmp4/examples/hls_live.rs b/mux/fmp4/examples/hls_live.rs index 4f58a6a8..27261608 100644 --- a/mux/fmp4/examples/hls_live.rs +++ b/mux/fmp4/examples/hls_live.rs @@ -153,7 +153,7 @@ fn trim_segments(state: &mut StreamState) { // safe side removal_time: segment .date_time - .checked_add_signed(Duration::seconds(20)) + .checked_add_signed(Duration::try_seconds(20).unwrap()) .unwrap(), path: segment.path.clone(), });