diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2013-03-20 15:31:42 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2013-03-20 15:31:42 +0100 |
commit | cff0388efeca492c80271a1b50fd18bb860d5b68 (patch) | |
tree | 0577e7574d95c1172f8a721796da2e9ce553d547 /tools/benchmark.c | |
parent | 9ead675ca6e8f89d43dafe6bf2ac7f622a7fce32 (diff) | |
download | uca-cff0388efeca492c80271a1b50fd18bb860d5b68.tar.gz uca-cff0388efeca492c80271a1b50fd18bb860d5b68.tar.bz2 uca-cff0388efeca492c80271a1b50fd18bb860d5b68.tar.xz uca-cff0388efeca492c80271a1b50fd18bb860d5b68.zip |
UFO: Use streaming for auto trigger
This has nothing to do with asynchronous operation mode.
Diffstat (limited to 'tools/benchmark.c')
-rw-r--r-- | tools/benchmark.c | 3 |
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); |