diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/control.c | 2 | ||||
-rw-r--r-- | test/grab-async.c | 2 | ||||
-rw-r--r-- | test/grab.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/control.c b/test/control.c index c220e21..dcb8c8e 100644 --- a/test/control.c +++ b/test/control.c @@ -96,7 +96,7 @@ void *grab_thread(void *args) struct uca_camera *cam = data->cam; while (data->running) { - cam->grab(cam, (char *) data->buffer); + cam->grab(cam, (char *) data->buffer, NULL); if (data->pixel_size == 1) convert_8bit_to_rgb(data->pixels, data->buffer, data->width, data->height); else if (data->pixel_size == 2) diff --git a/test/grab-async.c b/test/grab-async.c index ba3ae85..1e0a90b 100644 --- a/test/grab-async.c +++ b/test/grab-async.c @@ -5,7 +5,7 @@ #include "uca.h" #include "uca-cam.h" -void grab_callback(uint32_t image_number, void *buffer, void *user) +void grab_callback(uint32_t image_number, void *buffer, void *meta_data, void *user) { printf("got picture number %i\n", image_number); } diff --git a/test/grab.c b/test/grab.c index 446a117..3e429ed 100644 --- a/test/grab.c +++ b/test/grab.c @@ -31,7 +31,7 @@ int main(int argc, char *argv[]) uint16_t *buffer = (uint16_t *) malloc(width * height * pixel_size); cam->start_recording(cam); - cam->grab(cam, (char *) buffer); + cam->grab(cam, (char *) buffer, NULL); cam->stop_recording(cam); uca_destroy(u); |