From 4ec7d39fb87c0fe798212e03e1fb6441aa4d3296 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 22 Apr 2015 08:58:51 +0200 Subject: Explicitly disable async mode --- bin/tools/benchmark.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3