mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-29 13:01:05 +00:00
audio: AudioInfo: display format info in Debug
This commit is contained in:
parent
6c1392220d
commit
f84e94db78
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