From 37c98654a41be1ec90c9e6e399baae1583476060 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 17 Sep 2013 13:50:55 +0200 Subject: Do not throw an error when stream is finished --- plugins/pco/uca-pco-camera.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/pco') diff --git a/plugins/pco/uca-pco-camera.c b/plugins/pco/uca-pco-camera.c index b327532..8a58f06 100644 --- a/plugins/pco/uca-pco-camera.c +++ b/plugins/pco/uca-pco-camera.c @@ -606,11 +606,8 @@ uca_pco_camera_grab(UcaCamera *camera, gpointer data, GError **error) g_object_get(G_OBJECT(camera), "is-readout", &is_readout, NULL); if (is_readout) { - if (priv->current_image == priv->num_recorded_images) { - g_set_error (error, UCA_CAMERA_ERROR, UCA_CAMERA_ERROR_END_OF_STREAM, - "End of data stream"); + if (priv->current_image == priv->num_recorded_images) return FALSE; - } /* * No joke, the pco firmware allows to read a range of images but -- cgit v1.2.3