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 --- test/grab.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/grab.c b/test/grab.c index 8c5e78c..c8a6153 100644 --- a/test/grab.c +++ b/test/grab.c @@ -24,6 +24,9 @@ int main(int argc, char *argv[]) val = 0; handle_error(cam->set_property(cam, UCA_PROP_DELAY, &val)); + val = 1; + handle_error(cam->set_property(cam, UCA_PROP_GRAB_SYNCHRONOUS, &val)); + uint32_t width, height, bits; handle_error(cam->get_property(cam, UCA_PROP_WIDTH, &width, 0)); handle_error(cam->get_property(cam, UCA_PROP_HEIGHT, &height, 0)); -- cgit v1.2.3