summaryrefslogtreecommitdiffstats
path: root/plugins/ufo/uca-ufo-camera.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-03-20 16:58:08 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2013-03-20 16:59:34 +0100
commit3b524734a29824986ce0344e06cb81527cd266d8 (patch)
tree051fb7a656e736edd40ed64c684fe7f9d471b3b4 /plugins/ufo/uca-ufo-camera.c
parente7358a83b3c229d4877daa6ed75cddb81523d62e (diff)
downloaduca-3b524734a29824986ce0344e06cb81527cd266d8.tar.gz
uca-3b524734a29824986ce0344e06cb81527cd266d8.tar.bz2
uca-3b524734a29824986ce0344e06cb81527cd266d8.tar.xz
uca-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.c6
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)