From acef0fad9a74a133b65c0754082a8cf875387699 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 1 Jun 2012 09:19:19 +0200 Subject: Fix setting acquire mode --- src/cameras/uca-pco-camera.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/cameras') diff --git a/src/cameras/uca-pco-camera.c b/src/cameras/uca-pco-camera.c index 78ee8bf..953bef3 100644 --- a/src/cameras/uca-pco-camera.c +++ b/src/cameras/uca-pco-camera.c @@ -719,13 +719,17 @@ static void uca_pco_camera_set_property(GObject *object, guint property_id, cons case PROP_ACQUIRE_MODE: { UcaPcoCameraAcquireMode mode = (UcaPcoCameraAcquireMode) g_value_get_enum(value); + unsigned int err = PCO_NOERROR; if (mode == UCA_PCO_CAMERA_ACQUIRE_MODE_AUTO) - pco_set_acquire_mode(priv->pco, ACQUIRE_MODE_AUTO); + err = pco_set_acquire_mode(priv->pco, ACQUIRE_MODE_AUTO); else if (mode == UCA_PCO_CAMERA_ACQUIRE_MODE_EXTERNAL) - pco_set_record_mode(priv->pco, ACQUIRE_MODE_EXTERNAL); + err = pco_set_acquire_mode(priv->pco, ACQUIRE_MODE_EXTERNAL); else g_warning("Unknown acquire mode"); + + if (err != PCO_NOERROR) + g_warning("Cannot set acquire mode"); } break; -- cgit v1.2.3