summaryrefslogtreecommitdiffstats
path: root/test/grab.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/grab.c')
-rw-r--r--test/grab.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/grab.c b/test/grab.c
index a4d4aa3..41e6d88 100644
--- a/test/grab.c
+++ b/test/grab.c
@@ -114,7 +114,7 @@ int main(int argc, char *argv[])
uca_camera_start_recording(camera, &error);
g_assert_no_error(error);
- while (counter < 2) {
+ while (counter < 5) {
g_print(" grab frame ... ");
g_timer_start(timer);
uca_camera_grab(camera, &buffer, &error);
@@ -131,6 +131,7 @@ int main(int argc, char *argv[])
FILE *fp = fopen(filename, "wb");
fwrite(buffer, roi_width * roi_height, pixel_size, fp);
fclose(fp);
+ g_usleep(2 * G_USEC_PER_SEC);
}
g_print("Stop recording\n");