summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-21 14:35:45 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-21 14:35:45 +0100
commit2e13f2b9911db58cd3c4a7c06175c1cf2b2ceaf1 (patch)
treedda676253154aa208c2bc3281905ca1e8bc71879 /test
parent474ea510387144f524e2cf5e2b2140900f88155c (diff)
downloadlibuca-2e13f2b9911db58cd3c4a7c06175c1cf2b2ceaf1.tar.gz
libuca-2e13f2b9911db58cd3c4a7c06175c1cf2b2ceaf1.tar.bz2
libuca-2e13f2b9911db58cd3c4a7c06175c1cf2b2ceaf1.tar.xz
libuca-2e13f2b9911db58cd3c4a7c06175c1cf2b2ceaf1.zip
Fix wrong property type when setting photon focus properties
Diffstat (limited to 'test')
-rw-r--r--test/control.c4
1 files changed, 3 insertions, 1 deletions
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);