From eebd1ff77960a85a172878a286f8f3b0fad694d1 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 9 Aug 2011 09:52:41 +0200 Subject: Prepare uca for IPE camera --- src/cameras/ipe.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cameras/ipe.c b/src/cameras/ipe.c index 1f46867..2993409 100644 --- a/src/cameras/ipe.c +++ b/src/cameras/ipe.c @@ -90,6 +90,12 @@ static uint32_t uca_ipe_stop_recording(struct uca_camera_priv *cam) static uint32_t uca_ipe_grab(struct uca_camera_priv *cam, char *buffer, void *meta_data) { + pcilib_t *handle = cam->user; + size_t size = 0; + void *data = NULL; + if (pcilib_grab(handle, PCILIB_EVENTS_ALL, &size, &data, PCILIB_TIMEOUT_TRIGGER)) + return UCA_ERR_CAMERA; + memcpy(buffer, data, size); return UCA_NO_ERROR; } -- cgit v1.2.3