summaryrefslogtreecommitdiffstats
path: root/bin/tools/benchmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/tools/benchmark.c')
-rw-r--r--bin/tools/benchmark.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/tools/benchmark.c b/bin/tools/benchmark.c
index 142b268..6ed6872 100644
--- a/bin/tools/benchmark.c
+++ b/bin/tools/benchmark.c
@@ -207,6 +207,8 @@ benchmark (UcaCamera *camera, Options *options)
options->n_bytes = roi_width * roi_height * n_bytes_per_pixel;
buffer = g_malloc0 (options->n_bytes);
+ g_object_set (G_OBJECT(camera), "transfer-asynchronously", FALSE, NULL);
+
g_print ("[ sync ] [ auto ]");
benchmark_method (camera, buffer, grab_frames_sync, options, UCA_CAMERA_TRIGGER_SOURCE_AUTO);