mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 19:11:06 +00:00
audio: implement proper Debug on AudioFormatInfo
This commit is contained in:
parent
86f7a1dd9b
commit
6c1392220d
1 changed files with 10 additions and 1 deletions
|
@ -220,7 +220,16 @@ impl Eq for AudioFormatInfo {}
|
|||
|
||||
impl fmt::Debug for AudioFormatInfo {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
|
||||
f.write_str(self.name())
|
||||
f.debug_struct("AudioFormatInfo")
|
||||
.field("format", &self.format())
|
||||
.field("name", &self.name())
|
||||
.field("description", &self.description())
|
||||
.field("flags", &self.flags())
|
||||
.field("endianness", &self.endianness())
|
||||
.field("width", &self.width())
|
||||
.field("depth", &self.depth())
|
||||
.field("silence", &self.silence())
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue