summaryrefslogtreecommitdiffstats
path: root/uca-ufo-camera.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-10-07 15:49:06 +0200
committerSuren A. Chilingaryan <csa@suren.me>2016-10-07 15:49:06 +0200
commit71e1f2db8b87763c06211d85119a921b11095a9d (patch)
tree27e4bc964ef5d1e73ea52f1fb253fc1875cecc86 /uca-ufo-camera.c
parent96483d87e26b9333e03e4091d3aa77fd53e8f9e6 (diff)
parentef9222d2095898d6929c17250a57eaf0f9113a8d (diff)
downloaduca-ufo-71e1f2db8b87763c06211d85119a921b11095a9d.tar.gz
uca-ufo-71e1f2db8b87763c06211d85119a921b11095a9d.tar.bz2
uca-ufo-71e1f2db8b87763c06211d85119a921b11095a9d.tar.xz
uca-ufo-71e1f2db8b87763c06211d85119a921b11095a9d.zip
Merge branch 'master' of https://github.com/ufo-kit/uca-ufo
Diffstat (limited to 'uca-ufo-camera.c')
-rw-r--r--uca-ufo-camera.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uca-ufo-camera.c b/uca-ufo-camera.c
index 149220c..7470418 100644
--- a/uca-ufo-camera.c
+++ b/uca-ufo-camera.c
@@ -418,7 +418,7 @@ uca_ufo_camera_grab(UcaCamera *camera, gpointer data, GError **error)
set_control_bit (priv, 2, FALSE);
}
- PCILIB_SET_ERROR_RETURN_FALSE (err, UCA_UFO_CAMERA_ERROR_NEXT_EVENT);
+ PCILIB_SET_ERROR_RETURN_FALSE (err, err == ETIME ? UCA_CAMERA_ERROR_TIMEOUT : UCA_UFO_CAMERA_ERROR_NEXT_EVENT);
gpointer src = pcilib_get_data (priv->handle, event_id, PCILIB_EVENT_DATA, (size_t *) &err);