From 0e684b35d4707042bba028ce47b53d0336f662e0 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 24 Mar 2011 09:55:33 +0100 Subject: Expose synchronicity property, add boolean unit and document the error code format --- src/cameras/pf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/cameras/pf.c') diff --git a/src/cameras/pf.c b/src/cameras/pf.c index 5c35b70..86fe5e6 100644 --- a/src/cameras/pf.c +++ b/src/cameras/pf.c @@ -57,7 +57,10 @@ static uint32_t uca_pf_set_property(struct uca_camera *cam, enum uca_property_id int err = UCA_NO_ERROR; /* We try to set the property on the grabber. If it returns "invalid", we - * also try it via the PF SDK. Else, there was a more serious error. */ + * also try it via the PF SDK. Else, there was a more serious error. + * + * FIXME: This is actually not that good for cases where only the grabber + * should set a certain property and the camera itself is not able to do so. */ err = grabber->set_property(grabber, property, data); if (((err & UCA_ERR_MASK_CODE) == UCA_ERR_INVALID) || (err == UCA_NO_ERROR)) err = UCA_ERR_CAMERA | UCA_ERR_PROP; @@ -208,7 +211,7 @@ uint32_t uca_pf_init(struct uca_camera **cam, struct uca_grabber *grabber) struct uca_camera *uca = uca_cam_new(); uca->grabber = grabber; - uca->grabber->asynchronous = true; + uca->grabber->synchronous = false; /* Camera found, set function pointers... */ uca->destroy = &uca_pf_destroy; -- cgit v1.2.3