summaryrefslogtreecommitdiffstats
path: root/src/uca-cam.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-16 08:58:55 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-16 08:58:55 +0100
commit54a229b3864fe7867da69ef7427877094a256f1c (patch)
tree44b314944e24f3ef522360d76255bbc21ea36e12 /src/uca-cam.c
parent98511f7a77e7b37f9508b66298d99d7d1103e422 (diff)
downloadlibuca-54a229b3864fe7867da69ef7427877094a256f1c.tar.gz
libuca-54a229b3864fe7867da69ef7427877094a256f1c.tar.bz2
libuca-54a229b3864fe7867da69ef7427877094a256f1c.tar.xz
libuca-54a229b3864fe7867da69ef7427877094a256f1c.zip
Pass target string size when calling uca_get_property
Diffstat (limited to 'src/uca-cam.c')
-rw-r--r--src/uca-cam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uca-cam.c b/src/uca-cam.c
index 5d7741d..7c351d1 100644
--- a/src/uca-cam.c
+++ b/src/uca-cam.c
@@ -7,7 +7,7 @@
uint32_t uca_cam_alloc(struct uca_camera_t *cam, uint32_t n_buffers)
{
uint32_t bitdepth;
- cam->get_property(cam, UCA_PROP_BITDEPTH, &bitdepth);
+ cam->get_property(cam, UCA_PROP_BITDEPTH, &bitdepth, 0);
const int pixel_size = bitdepth == 8 ? 1 : 2;
if (cam->grabber != NULL)
return cam->grabber->alloc(cam->grabber, pixel_size, n_buffers);