From 907a7e5cf8c624c49a03c837c206bdb582a3f7d5 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 25 Oct 2013 12:19:27 +0200 Subject: Call pco_request_image only in non-readout mode This should improve performance by 25 per cent. --- plugins/pco/uca-pco-camera.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/pco/uca-pco-camera.c b/plugins/pco/uca-pco-camera.c index 45a24d8..c59c24b 100644 --- a/plugins/pco/uca-pco-camera.c +++ b/plugins/pco/uca-pco-camera.c @@ -583,9 +583,10 @@ uca_pco_camera_grab(UcaCamera *camera, gpointer data, GError **error) pco_read_images(priv->pco, priv->active_segment, priv->current_image, priv->current_image); priv->current_image++; } - - err = pco_request_image(priv->pco); - CHECK_AND_RETURN_VAL_ON_PCO_ERROR (err, FALSE); + else { + err = pco_request_image (priv->pco); + CHECK_AND_RETURN_VAL_ON_PCO_ERROR (err, FALSE); + } priv->last_frame = Fg_getLastPicNumberBlockingEx(priv->fg, priv->last_frame + 1, priv->fg_port, MAX_TIMEOUT, priv->fg_mem); -- cgit v1.2.3