diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-06-01 09:19:19 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-06-01 09:19:19 +0200 |
commit | acef0fad9a74a133b65c0754082a8cf875387699 (patch) | |
tree | 9a70b1a613533b1be63aa767c952c87c1af320cf /src/cameras | |
parent | 480365d362cc427e48608f48e1966f4d77d38e52 (diff) | |
download | libuca-acef0fad9a74a133b65c0754082a8cf875387699.tar.gz libuca-acef0fad9a74a133b65c0754082a8cf875387699.tar.bz2 libuca-acef0fad9a74a133b65c0754082a8cf875387699.tar.xz libuca-acef0fad9a74a133b65c0754082a8cf875387699.zip |
Fix setting acquire mode
Diffstat (limited to 'src/cameras')
-rw-r--r-- | src/cameras/uca-pco-camera.c | 8 |
1 files changed, 6 insertions, 2 deletions
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; |