From 7c93c38731cf3828fa5a2e1703708a733547c0f6 Mon Sep 17 00:00:00 2001 From: capitalistspz Date: Fri, 6 Sep 2024 23:34:03 +0100 Subject: [PATCH] camera: event argument correction (#399) * Event arg correction from surface to surface buffer * Correct offset check --- include/camera/camera.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/camera/camera.h b/include/camera/camera.h index 9787eb2f..55c457ec 100644 --- a/include/camera/camera.h +++ b/include/camera/camera.h @@ -73,8 +73,8 @@ struct CAMEventData { struct { - //! The surface that finished decoding - CAMSurface* surface; + //! Pointer to the buffer of the decoded image + void* surfaceBuffer; //! Handle of instance CAMHandle handle; //! TRUE if decode failed @@ -92,7 +92,7 @@ struct CAMEventData }; }; WUT_CHECK_OFFSET(CAMEventData, 0x00, eventType); -WUT_CHECK_OFFSET(CAMEventData, 0x04, decode.surface); +WUT_CHECK_OFFSET(CAMEventData, 0x04, decode.surfaceBuffer); WUT_CHECK_OFFSET(CAMEventData, 0x08, decode.handle); WUT_CHECK_OFFSET(CAMEventData, 0x0c, decode.failed); WUT_CHECK_OFFSET(CAMEventData, 0x04, detach.connected);