mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 17:41:05 +00:00
audio: AudioInfo: display format info in Debug
This commit is contained in:
parent
bee134bc42
commit
5a2868ac57
1 changed files with 1 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue