From a92101a277aed63224e1bd2077c99826e9e35f1d Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 1 Mar 2011 09:34:21 +0100 Subject: Complete (simple) frame grabbing --- test/grab.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test') diff --git a/test/grab.c b/test/grab.c index 34453da..aeed8c6 100644 --- a/test/grab.c +++ b/test/grab.c @@ -23,10 +23,8 @@ int main(int argc, char *argv[]) uint32_t width, height; cam->get_property(cam, UCA_PROP_WIDTH, &width); cam->get_property(cam, UCA_PROP_HEIGHT, &height); - printf("Image dimensions: %ix%i\n", width, height); - if (uca_cam_alloc(cam, 20) != UCA_NO_ERROR) - printf("Couldn't allocate buffer memory\n"); + uca_cam_alloc(cam, 20); uint16_t *buffer = (uint16_t *) malloc(width * height * 2); -- cgit v1.2.3