Skip to content

Commit

Permalink
camera: event argument correction (#399)
Browse files Browse the repository at this point in the history
* Event arg correction from surface to surface buffer

* Correct offset check
  • Loading branch information
capitalistspz authored Sep 6, 2024
1 parent 34ad457 commit 7c93c38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/camera/camera.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand Down

0 comments on commit 7c93c38

Please sign in to comment.