gtk4: log paintable size in snapshot

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1712>
This commit is contained in:
Guillaume Desmottes 2024-08-05 15:53:19 +02:00 committed by GStreamer Marge Bot
parent c87ddd43e4
commit dad755ece3

View file

@ -220,7 +220,7 @@ impl PaintableImpl for Paintable {
let paintables = self.paintables.borrow(); let paintables = self.paintables.borrow();
let Some(first_paintable) = paintables.first() else { 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( snapshot.append_color(
&background_color, &background_color,
&graphene::Rect::new(0f32, 0f32, width as f32, height as f32), &graphene::Rect::new(0f32, 0f32, width as f32, height as f32),
@ -229,7 +229,7 @@ impl PaintableImpl for Paintable {
return; 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. // The first paintable is the actual video frame and defines the overall size.
// //