diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-10 16:30:09 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-10 16:30:09 +0100 |
commit | 423e180f3a55cd4b3350d0f50d71685f3052d145 (patch) | |
tree | a76ef30a6512facd2299e2f9c1f264db05c2a367 /src/uca-cam.c | |
parent | f0cb3317a0cf8333c03b0a45e3bb25c7490f85ef (diff) | |
download | uca-423e180f3a55cd4b3350d0f50d71685f3052d145.tar.gz uca-423e180f3a55cd4b3350d0f50d71685f3052d145.tar.bz2 uca-423e180f3a55cd4b3350d0f50d71685f3052d145.tar.xz uca-423e180f3a55cd4b3350d0f50d71685f3052d145.zip |
Add dummy camera with frame counter
Diffstat (limited to 'src/uca-cam.c')
-rw-r--r-- | src/uca-cam.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uca-cam.c b/src/uca-cam.c index 31ad416..7e033fd 100644 --- a/src/uca-cam.c +++ b/src/uca-cam.c @@ -9,7 +9,8 @@ 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); const int pixel_size = bitdepth == 8 ? 1 : 2; - cam->grabber->alloc(cam->grabber, pixel_size, n_buffers); + if (cam->grabber != NULL) + cam->grabber->alloc(cam->grabber, pixel_size, n_buffers); } enum uca_cam_state uca_cam_get_state(struct uca_camera_t *cam) |