From 21f6842e49ab348ad54bd7cf793226989482c5e7 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sat, 9 Oct 2021 22:59:58 +0100 Subject: [PATCH] st/gui: Add some debugging to the paranoia --- src/xrt/state_trackers/gui/gui_window_record.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xrt/state_trackers/gui/gui_window_record.c b/src/xrt/state_trackers/gui/gui_window_record.c index b41bbd0b0..f54a5e38b 100644 --- a/src/xrt/state_trackers/gui/gui_window_record.c +++ b/src/xrt/state_trackers/gui/gui_window_record.c @@ -222,6 +222,11 @@ window_frame(struct xrt_frame_sink *xfs, struct xrt_frame *xf) struct gui_record_window *rw = container_of(xfs, struct gui_record_window, sink); if (rw->source.width != xf->width || rw->source.height != xf->height || rw->source.format != xf->format) { + if (rw->source.width != 0 || rw->source.height != 0) { + U_LOG_E("Changing properties! Old: %ux%u:%s(%u), new %ux%u:%s(%u)", rw->source.width, + rw->source.height, u_format_str(rw->source.format), rw->source.format, xf->width, + xf->height, u_format_str(xf->format), xf->format); + } assert(rw->source.width == 0 && rw->source.height == 0); rw->source.width = xf->width;