From 2b8cfdd28ccee0fa7fbd1a1a2fd5f59f641a3285 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 27 Mar 2015 15:28:39 +0100 Subject: ufo: check trigger error --- plugins/ufo/uca-ufo-camera.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/ufo/uca-ufo-camera.c b/plugins/ufo/uca-ufo-camera.c index da47a96..936485d 100644 --- a/plugins/ufo/uca-ufo-camera.c +++ b/plugins/ufo/uca-ufo-camera.c @@ -429,12 +429,14 @@ static void uca_ufo_camera_trigger (UcaCamera *camera, GError **error) { UcaUfoCameraPrivate *priv; + int err; g_return_if_fail (UCA_IS_UFO_CAMERA(camera)); priv = UCA_UFO_CAMERA_GET_PRIVATE(camera); /* XXX: What is PCILIB_EVENT0? */ - pcilib_trigger (priv->handle, PCILIB_EVENT0, 0, NULL); + err = pcilib_trigger (priv->handle, PCILIB_EVENT0, 0, NULL); + PCILIB_SET_ERROR (err, UCA_UFO_CAMERA_ERROR_TRIGGER); } static void -- cgit v1.2.3