Commit c2ee8d22 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Print more fields in the VideoInfo fmt::Debug impl

parent f271c994
......@@ -192,16 +192,33 @@ pub struct VideoInfo(pub(crate) ffi::GstVideoInfo);
impl fmt::Debug for VideoInfo {
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
.field("format", &self.format())
let mut b = f.debug_struct("VideoInfo");
b.field("format", &self.format())
.field("width", &self.width())
.field("height", &self.height())
.field("interlace_mode", &self.interlace_mode())
.field("flags", &self.flags())
.field("size", &self.size())
.field("views", &self.views())
.field("chroma_site", &self.chroma_site())
.field("colorimetry", &self.colorimetry())
.field("par", &self.par())
.field("fps", &self.fps())
.field("offset", &self.offset())
.field("stride", &self.stride())
.field("multiview_mode", &self.multiview_mode())
.field("multiview_flags", &self.multiview_flags());
#[cfg(any(feature = "v1_12", feature = "dox"))]
b.field("field_order", &self.field_order());
pub struct VideoInfoBuilder<'a> {
format: ::VideoFormat,
width: u32,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment