gtk4: Add debug logs for frame type

Since commit 7b561354 it is easy - and helpful for development
and debugging.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2490>
This commit is contained in:
Robert Mader 2025-07-19 15:57:07 +02:00
parent de26c2d58b
commit b2ae5dfa54

View file

@ -757,6 +757,13 @@ impl Frame {
orientation,
});
}
if frame.is_some() {
gst::debug!(
CAT,
imp = dbg_obj,
"Created frame using DmabufTextureBuilder"
);
}
}
}
@ -805,6 +812,9 @@ impl Frame {
wrapped_context: wrapped_context.unwrap().clone(),
orientation,
});
if frame.is_some() {
gst::debug!(CAT, imp = dbg_obj, "Created frame using GLTextureBuilder");
}
}
}
@ -843,11 +853,17 @@ impl Frame {
}
};
MappedFrame::SysMem {
let frame = MappedFrame::SysMem {
frame: gst_video::VideoFrame::from_buffer_readable(readable_frame, info)
.map_err(|_| gst::FlowError::Error)?,
orientation,
}
};
gst::debug!(
CAT,
imp = dbg_obj,
"Created frame using MemoryTextureBuilder"
);
frame
}
},
overlays: vec![],