gtk4: log paintable size in snapshot

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1689>
This commit is contained in:
Guillaume Desmottes 2024-08-05 15:53:19 +02:00
parent fa060b9fa0
commit 2333b241f0

View file

@ -220,7 +220,7 @@ impl PaintableImpl for Paintable {
let paintables = self.paintables.borrow();
let Some(first_paintable) = paintables.first() else {
gst::trace!(CAT, imp = self, "Snapshotting black frame");
gst::trace!(CAT, imp = self, "Snapshotting black frame {width}x{height}");
snapshot.append_color(
&background_color,
&graphene::Rect::new(0f32, 0f32, width as f32, height as f32),
@ -229,7 +229,7 @@ impl PaintableImpl for Paintable {
return;
};
gst::trace!(CAT, imp = self, "Snapshotting frame");
gst::trace!(CAT, imp = self, "Snapshotting frame {width}x{height}");
// The first paintable is the actual video frame and defines the overall size.
//