summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-12-01 11:39:12 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-12-01 11:39:12 +0100
commit8479f956c948dfbe4ca1808cee70f59cc8c06be0 (patch)
tree9569a9aa82ed09676763b010ec8f2e5c92f95cda
parent00d751b6c61fbe7391ad4ad4849ff6c349641ef8 (diff)
downloadlibuca-8479f956c948dfbe4ca1808cee70f59cc8c06be0.tar.gz
libuca-8479f956c948dfbe4ca1808cee70f59cc8c06be0.tar.bz2
libuca-8479f956c948dfbe4ca1808cee70f59cc8c06be0.tar.xz
libuca-8479f956c948dfbe4ca1808cee70f59cc8c06be0.zip
Fix grab if Python is not used
-rw-r--r--src/uca-camera.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/uca-camera.c b/src/uca-camera.c
index 2de1489..50a9aea 100644
--- a/src/uca-camera.c
+++ b/src/uca-camera.c
@@ -967,6 +967,9 @@ uca_camera_grab (UcaCamera *camera, gpointer data, GError **error)
Py_END_ALLOW_THREADS
PyGILState_Release (state);
}
+ else {
+ result = (*klass->grab) (camera, data, error);
+ }
#else
result = (*klass->grab) (camera, data, error);
#endif