audio: AudioInfo: display format info in Debug

This commit is contained in:
Guillaume Desmottes 2019-07-03 14:32:43 +02:00
parent 6c1392220d
commit f84e94db78

View file

@ -28,6 +28,7 @@ pub struct AudioInfo(gst_audio_sys::GstAudioInfo, [::AudioChannelPosition; 64]);
impl fmt::Debug for AudioInfo { impl fmt::Debug for AudioInfo {
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> { fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
f.debug_struct("AudioInfo") f.debug_struct("AudioInfo")
.field("format-info", &self.format_info())
.field("rate", &self.rate()) .field("rate", &self.rate())
.field("channels", &self.channels()) .field("channels", &self.channels())
.field("positions", &self.positions()) .field("positions", &self.positions())