From 1fe54d437f1a11f5ff402dfb0d19d5de37f4b005 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 30 Sep 2014 18:33:03 +0200 Subject: pco: add global shutter support --- src/uca-camera.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/uca-camera.c') diff --git a/src/uca-camera.c b/src/uca-camera.c index 6f44957..9c90f1a 100644 --- a/src/uca-camera.c +++ b/src/uca-camera.c @@ -943,6 +943,9 @@ uca_camera_grab (UcaCamera *camera, gpointer data, GError **error) else { gpointer buffer; + if (camera->priv->ring_buffer == NULL) + return FALSE; + /* * Spin-lock until we can read something. This shouldn't happen to * often, as buffering is usually used in those cases when the camera is -- cgit v1.2.3