From d4806d6ab69eb277a7970a0005ef151ec73eb669 Mon Sep 17 00:00:00 2001 From: Martijn Braam Date: Fri, 21 Jul 2023 12:18:47 +0200 Subject: [PATCH] Don't make stats a pointer --- src/process_pipeline.c | 6 +++--- src/state.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/process_pipeline.c b/src/process_pipeline.c index 20cec3c..e498f56 100644 --- a/src/process_pipeline.c +++ b/src/process_pipeline.c @@ -472,10 +472,10 @@ process_image_for_preview(const uint8_t *image) GL_UNSIGNED_BYTE, center); libmegapixels_aaa_software_statistics( - center, width, height, state_proc.stats); + center, width, height, &state_proc.stats); printf("STAT: %d %d\n", - state_proc.stats->exposure, - state_proc.stats->whitebalance); + state_proc.stats.exposure, + state_proc.stats.whitebalance); } // Create a thumbnail from the preview for the last capture diff --git a/src/state.h b/src/state.h index 0e68e32..eec4908 100644 --- a/src/state.h +++ b/src/state.h @@ -77,7 +77,7 @@ typedef struct state_proc { libmegapixels_devconfig *configuration; libmegapixels_camera *camera; libmegapixels_mode *mode; - libmegapixels_aaa_stats *stats; + libmegapixels_aaa_stats stats; int burst_length; int captures_remaining;