summaryrefslogtreecommitdiffstats
path: root/src/uca-camera.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uca-camera.c')
-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 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