diff --git a/video/closedcaption/Cargo.toml b/video/closedcaption/Cargo.toml index 7c87dbc1..55047cb6 100644 --- a/video/closedcaption/Cargo.toml +++ b/video/closedcaption/Cargo.toml @@ -12,7 +12,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs" anyhow = "1" nom = "7.0" either = "1" -uuid = { version = "0.8", features = ["v4"] } +uuid = { version = "1.0", features = ["v4"] } chrono = "0.4" once_cell = "1.0" atomic_refcell = "0.1" diff --git a/video/closedcaption/src/mcc_enc/imp.rs b/video/closedcaption/src/mcc_enc/imp.rs index 5bce0059..59266e46 100644 --- a/video/closedcaption/src/mcc_enc/imp.rs +++ b/video/closedcaption/src/mcc_enc/imp.rs @@ -90,7 +90,7 @@ impl MccEnc { if let Some(ref uuid) = settings.uuid { let _ = write!(buffer, "UUID={}\r\n", uuid); } else { - let _ = write!(buffer, "UUID={:X}\r\n", Uuid::new_v4().to_hyphenated()); + let _ = write!(buffer, "UUID={:X}\r\n", Uuid::new_v4().as_hyphenated()); } let _ = write!(