fmp4mux: Update to dash-mpd 0.15

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1474>
This commit is contained in:
Sebastian Dröge 2024-02-26 10:55:01 +02:00
parent fc1c017fc6
commit b9195ed309
3 changed files with 9 additions and 10 deletions

13
Cargo.lock generated
View file

@ -1352,9 +1352,9 @@ dependencies = [
[[package]] [[package]]
name = "dash-mpd" name = "dash-mpd"
version = "0.14.8" version = "0.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c81c5809ddb313f6357b26e1bf484e4811257951bded02a9799f97d3912411d5" checksum = "18c18f28b58beade78e0f61a846a63a122cb92c5f5ed6bad29d7ad13287c7526"
dependencies = [ dependencies = [
"base64 0.21.7", "base64 0.21.7",
"base64-serde", "base64-serde",
@ -1369,7 +1369,6 @@ dependencies = [
"serde_path_to_error", "serde_path_to_error",
"serde_with", "serde_with",
"thiserror", "thiserror",
"tokio",
"tracing", "tracing",
"url", "url",
"xattr", "xattr",
@ -5625,9 +5624,9 @@ checksum = "b97ed7a9823b74f99c7742f5336af7be5ecd3eeafcb1507d1fa93347b1d589b0"
[[package]] [[package]]
name = "serde" name = "serde"
version = "1.0.196" version = "1.0.197"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "870026e60fa08c69f064aa766c10f10b1d62db9ccd4d0abb206472bee0ce3b32" checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2"
dependencies = [ dependencies = [
"serde_derive", "serde_derive",
] ]
@ -5643,9 +5642,9 @@ dependencies = [
[[package]] [[package]]
name = "serde_derive" name = "serde_derive"
version = "1.0.196" version = "1.0.197"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67" checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",

View file

@ -27,7 +27,7 @@ gst-app = { workspace = true, features = ["v1_18"] }
gst-check = { workspace = true, features = ["v1_18"] } gst-check = { workspace = true, features = ["v1_18"] }
m3u8-rs = "5.0" m3u8-rs = "5.0"
chrono = "0.4" chrono = "0.4"
dash-mpd = { version = "0.14", default-features = false } dash-mpd = { version = "0.15", default-features = false }
quick-xml = { version = "0.31", features = ["serialize"] } quick-xml = { version = "0.31", features = ["serialize"] }
serde = "1" serde = "1"

View file

@ -182,8 +182,8 @@ fn main() -> Result<(), Error> {
let mut write_segment = let mut write_segment =
|start: gst::ClockTime, duration: gst::ClockTime, repeat: usize| { |start: gst::ClockTime, duration: gst::ClockTime, repeat: usize| {
let mut s = dash_mpd::S { let mut s = dash_mpd::S {
t: Some(start.mseconds() as i64), t: Some(start.mseconds()),
d: duration.mseconds() as i64, d: duration.mseconds(),
..Default::default() ..Default::default()
}; };
if repeat > 0 { if repeat > 0 {