From 2e13f2b9911db58cd3c4a7c06175c1cf2b2ceaf1 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 21 Mar 2011 14:35:45 +0100 Subject: Fix wrong property type when setting photon focus properties --- test/control.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/control.c b/test/control.c index dcb8c8e..7f013e2 100644 --- a/test/control.c +++ b/test/control.c @@ -336,8 +336,10 @@ int main(int argc, char *argv[]) /* start grabbing and thread */ int pixel_size = bits_per_sample == 8 ? 1 : 2; + if (uca_cam_alloc(cam, 20) != UCA_NO_ERROR) + g_print("Couldn't allocate buffer for 20 frames\n"); + ThreadData td; - uca_cam_alloc(cam, 20); td.image = image; td.pixbuf = pixbuf; td.buffer = (guchar *) g_malloc(pixel_size * width * height); -- cgit v1.2.3