From 11201def487f90fc94cc06a163c4226aebbb92e3 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 24 Apr 2015 08:43:52 +0200 Subject: ufo: fix async mode pcilib_start must be called before the grab thread is started. --- plugins/ufo/uca-ufo-camera.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/ufo/uca-ufo-camera.c b/plugins/ufo/uca-ufo-camera.c index 1de4010..0b86030 100644 --- a/plugins/ufo/uca-ufo-camera.c +++ b/plugins/ufo/uca-ufo-camera.c @@ -314,11 +314,11 @@ uca_ufo_camera_start_recording (UcaCamera *camera, GError **error) set_control_bit (priv, 14, trigger_source == UCA_CAMERA_TRIGGER_SOURCE_AUTO || trigger_source == UCA_CAMERA_TRIGGER_SOURCE_EXTERNAL); + err = pcilib_start (priv->handle, PCILIB_EVENT_DATA, PCILIB_EVENT_FLAGS_DEFAULT); + if (transfer_async) priv->async_thread = g_thread_create ((GThreadFunc) stream_async, camera, TRUE, error); - err = pcilib_start (priv->handle, PCILIB_EVENT_DATA, PCILIB_EVENT_FLAGS_DEFAULT); - if (err != 0) { g_set_error (&priv->construct_error, UCA_UFO_CAMERA_ERROR, UCA_UFO_CAMERA_ERROR_INIT, -- cgit v1.2.3