From 81f91caf0efecb6991c814651ee438ea379c7b2a Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 4 May 2022 10:59:44 +1000 Subject: [PATCH] [host] pw: fix build due to frame info structure changes --- .../Linux/capture/pipewire/src/pipewire.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/host/platform/Linux/capture/pipewire/src/pipewire.c b/host/platform/Linux/capture/pipewire/src/pipewire.c index 2a9e2049..4b9a1876 100644 --- a/host/platform/Linux/capture/pipewire/src/pipewire.c +++ b/host/platform/Linux/capture/pipewire/src/pipewire.c @@ -423,14 +423,16 @@ static CaptureResult pipewire_waitFrame(CaptureFrame * frame, const int bpp = this->format == CAPTURE_FMT_RGBA16F ? 8 : 4; const unsigned int maxHeight = maxFrameSize / (this->width * bpp); - frame->formatVer = this->formatVer; - frame->format = this->format; - frame->width = this->width; - frame->height = maxHeight > this->height ? this->height : maxHeight; - frame->realHeight = this->height; - frame->pitch = this->width * bpp; - frame->stride = this->width; - frame->rotation = CAPTURE_ROT_0; + frame->formatVer = this->formatVer; + frame->format = this->format; + frame->screenWidth = this->width; + frame->screenHeight = this->height; + frame->frameWidth = this->width; + frame->frameHeight = maxHeight > this->height ? this->height : maxHeight; + frame->truncated = maxHeight > this->height; + frame->pitch = this->width * bpp; + frame->stride = this->width; + frame->rotation = CAPTURE_ROT_0; // TODO: implement damage. frame->damageRectsCount = 0;