From ad62d08d65b0b702cc54573a9124d2c0f51ed1c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 28 Sep 2018 19:14:35 +0300 Subject: [PATCH] Implement Display for Caps and TagList --- gstreamer/src/caps.rs | 6 ++++++ gstreamer/src/tags.rs | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/gstreamer/src/caps.rs b/gstreamer/src/caps.rs index ec096934b..a2a442da0 100644 --- a/gstreamer/src/caps.rs +++ b/gstreamer/src/caps.rs @@ -116,6 +116,12 @@ impl str::FromStr for Caps { } } +impl fmt::Display for Caps { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + self.0.fmt(f) + } +} + impl CapsRef { pub fn set_simple(&mut self, values: &[(&str, &ToSendValue)]) { for &(name, value) in values { diff --git a/gstreamer/src/tags.rs b/gstreamer/src/tags.rs index f74b05ff0..cc49c5c8d 100644 --- a/gstreamer/src/tags.rs +++ b/gstreamer/src/tags.rs @@ -358,6 +358,12 @@ impl Default for TagList { } } +impl fmt::Display for TagList { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + self.0.fmt(f) + } +} + impl TagListRef { pub fn add<'a, T: Tag<'a>>(&mut self, value: &T::TagType, mode: TagMergeMode) where