From c5c230005390b52fd0d5c067569729bdb2cae869 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 25 Oct 2013 12:02:55 +0200 Subject: Read properties in one go --- plugins/pco/uca-pco-camera.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/pco/uca-pco-camera.c b/plugins/pco/uca-pco-camera.c index b54e4ae..45a24d8 100644 --- a/plugins/pco/uca-pco-camera.c +++ b/plugins/pco/uca-pco-camera.c @@ -379,7 +379,10 @@ uca_pco_camera_start_recording (UcaCamera *camera, GError **error) priv = UCA_PCO_CAMERA_GET_PRIVATE (camera); - g_object_get (camera, "sensor-extended", &use_extended, NULL); + g_object_get (camera, + "sensor-extended", &use_extended, + "transfer-asynchronously", &transfer_async, + NULL); if (use_extended) { binned_width = priv->width_ex; @@ -408,8 +411,6 @@ uca_pco_camera_start_recording (UcaCamera *camera, GError **error) err = pco_set_roi (priv->pco, roi); CHECK_AND_RETURN_ON_PCO_ERROR (err); - g_object_get (G_OBJECT (camera), "transfer-asynchronously", &transfer_async, NULL); - /* * FIXME: We cannot set the binning here as this breaks communication with * the camera. Setting the binning works _before_ initializing the frame -- cgit v1.2.3