From 05f395eef15f1ccc227af281a6f51f4f0fdfa74f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 22 Apr 2022 14:29:42 +0300 Subject: [PATCH] closedcaption: Update to uuid 1.0 --- video/closedcaption/Cargo.toml | 2 +- video/closedcaption/src/mcc_enc/imp.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/video/closedcaption/Cargo.toml b/video/closedcaption/Cargo.toml index 7c87dbc16..55047cb63 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 5bce00598..59266e460 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!(