From f84e94db78acb3556745bb425da6600516db597a Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 3 Jul 2019 14:32:43 +0200 Subject: [PATCH] audio: AudioInfo: display format info in Debug --- gstreamer-audio/src/audio_info.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/gstreamer-audio/src/audio_info.rs b/gstreamer-audio/src/audio_info.rs index edf6fd846..c2d3cef2e 100644 --- a/gstreamer-audio/src/audio_info.rs +++ b/gstreamer-audio/src/audio_info.rs @@ -28,6 +28,7 @@ pub struct AudioInfo(gst_audio_sys::GstAudioInfo, [::AudioChannelPosition; 64]); impl fmt::Debug for AudioInfo { fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> { f.debug_struct("AudioInfo") + .field("format-info", &self.format_info()) .field("rate", &self.rate()) .field("channels", &self.channels()) .field("positions", &self.positions())