fmp4mux: Move away from deprecated chrono function

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1503>
This commit is contained in:
Sebastian Dröge 2024-03-20 15:37:18 +02:00
parent cca3ebf520
commit 2b9272c7eb
2 changed files with 2 additions and 2 deletions

View file

@ -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"

View file

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