diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-21 14:35:45 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-21 14:35:45 +0100 |
commit | 2e13f2b9911db58cd3c4a7c06175c1cf2b2ceaf1 (patch) | |
tree | dda676253154aa208c2bc3281905ca1e8bc71879 /test | |
parent | 474ea510387144f524e2cf5e2b2140900f88155c (diff) | |
download | uca-2e13f2b9911db58cd3c4a7c06175c1cf2b2ceaf1.tar.gz uca-2e13f2b9911db58cd3c4a7c06175c1cf2b2ceaf1.tar.bz2 uca-2e13f2b9911db58cd3c4a7c06175c1cf2b2ceaf1.tar.xz uca-2e13f2b9911db58cd3c4a7c06175c1cf2b2ceaf1.zip |
Fix wrong property type when setting photon focus properties
Diffstat (limited to 'test')
-rw-r--r-- | test/control.c | 4 |
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); |