audio: AudioInfo: display format info in Debug

This commit is contained in:
Guillaume Desmottes 2019-07-03 14:32:43 +02:00 committed by Sebastian Dröge
parent bee134bc42
commit 5a2868ac57

View file

@ -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())