diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2013-03-20 16:58:08 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2013-03-20 16:59:34 +0100 |
commit | 3b524734a29824986ce0344e06cb81527cd266d8 (patch) | |
tree | 051fb7a656e736edd40ed64c684fe7f9d471b3b4 /plugins/ufo/uca-ufo-camera.c | |
parent | e7358a83b3c229d4877daa6ed75cddb81523d62e (diff) | |
download | libuca-3b524734a29824986ce0344e06cb81527cd266d8.tar.gz libuca-3b524734a29824986ce0344e06cb81527cd266d8.tar.bz2 libuca-3b524734a29824986ce0344e06cb81527cd266d8.tar.xz libuca-3b524734a29824986ce0344e06cb81527cd266d8.zip |
Set streaming bit _after_ pcilib_start
God knows why this is this way ...
Diffstat (limited to 'plugins/ufo/uca-ufo-camera.c')
-rw-r--r-- | plugins/ufo/uca-ufo-camera.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ufo/uca-ufo-camera.c b/plugins/ufo/uca-ufo-camera.c index c989b94..145c2ee 100644 --- a/plugins/ufo/uca-ufo-camera.c +++ b/plugins/ufo/uca-ufo-camera.c @@ -300,12 +300,12 @@ uca_ufo_camera_start_recording(UcaCamera *camera, GError **error) "trigger-mode", &trigger, NULL); - if (trigger == UCA_CAMERA_TRIGGER_AUTO) - set_streaming (priv, TRUE); - err = pcilib_start(priv->handle, PCILIB_EVENT_DATA, PCILIB_EVENT_FLAGS_DEFAULT); PCILIB_SET_ERROR(err, UCA_UFO_CAMERA_ERROR_START_RECORDING); + if (trigger == UCA_CAMERA_TRIGGER_AUTO) + set_streaming (priv, TRUE); + priv->timeout = ((pcilib_timeout_t) (exposure_time * 1000 + 50.0) * 1000); if (transfer_async) |