summaryrefslogtreecommitdiffstats
path: root/tools/benchmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/benchmark.c')
-rw-r--r--tools/benchmark.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/benchmark.c b/tools/benchmark.c
index f262a06..0939d78 100644
--- a/tools/benchmark.c
+++ b/tools/benchmark.c
@@ -100,7 +100,8 @@ grab_frames_sync (UcaCamera *camera, gpointer buffer, guint n_frames)
uca_camera_start_recording (camera, &error);
for (guint i = 0; i < n_frames; i++) {
- uca_camera_grab(camera, buffer, &error);
+ if (!uca_camera_grab (camera, buffer, &error))
+ g_warning ("Data stream ended");
if (error != NULL) {
g_warning ("Error grabbing frame %02i/%i: `%s'", i, n_frames, error->message);