summaryrefslogtreecommitdiffstats
path: root/src/cameras/pco.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-10 10:25:12 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-10 10:25:12 +0100
commitf0cb3317a0cf8333c03b0a45e3bb25c7490f85ef (patch)
tree58ebebc3f22375fe5d1e40e851f0907476f701c9 /src/cameras/pco.c
parentc3b3cfd97b51bf6e6970156c92506cb6fa037b65 (diff)
downloadlibuca-f0cb3317a0cf8333c03b0a45e3bb25c7490f85ef.tar.gz
libuca-f0cb3317a0cf8333c03b0a45e3bb25c7490f85ef.tar.bz2
libuca-f0cb3317a0cf8333c03b0a45e3bb25c7490f85ef.tar.xz
libuca-f0cb3317a0cf8333c03b0a45e3bb25c7490f85ef.zip
Add IPE infrastructure and make sure that cameras check grabber existence
Diffstat (limited to 'src/cameras/pco.c')
-rw-r--r--src/cameras/pco.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cameras/pco.c b/src/cameras/pco.c
index ccf7d90..cb286e8 100644
--- a/src/cameras/pco.c
+++ b/src/cameras/pco.c
@@ -239,6 +239,9 @@ uint32_t uca_pco_grab(struct uca_camera_t *cam, char *buffer)
uint32_t uca_pco_init(struct uca_camera_t **cam, struct uca_grabber_t *grabber)
{
+ if (grabber == NULL)
+ return UCA_ERR_CAM_NOT_FOUND;
+
struct pco_edge_t *pco = pco_init();
if (pco == NULL) {