mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-29 15:01:07 +00:00
fmp4mux: Move away from deprecated chrono function
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1508>
This commit is contained in:
parent
dab1ff7dd9
commit
4def418b45
2 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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(),
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue