From f6b63f4957c55107310d092dbf8eecce1e3d12b4 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 23 Feb 2011 22:45:13 +0100 Subject: Add new properties and return PROP_INVALID if not available --- src/cameras/uca_pco.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cameras') diff --git a/src/cameras/uca_pco.c b/src/cameras/uca_pco.c index 44ecf95..3155376 100644 --- a/src/cameras/uca_pco.c +++ b/src/cameras/uca_pco.c @@ -70,9 +70,9 @@ static uint32_t uca_pco_set_property(struct uca_t *uca, int32_t property, void * break; default: - break; + return UCA_ERR_PROP_INVALID; } - return 0; + return UCA_NO_ERROR; } static uint32_t uca_pco_get_property(struct uca_t *uca, int32_t property, void *data) @@ -104,9 +104,9 @@ static uint32_t uca_pco_get_property(struct uca_t *uca, int32_t property, void * } default: - break; + return UCA_ERR_PROP_INVALID; } - return 0; + return UCA_NO_ERROR; } uint32_t uca_pco_init(struct uca_t *uca) -- cgit v1.2.3