From 06fdc489f0cd433b20baef2d936e5d5db153af59 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 24 Apr 2015 08:45:01 +0200 Subject: Fix async benchmarks --- bin/tools/benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/tools/benchmark.c b/bin/tools/benchmark.c index 321ffe9..e86aaff 100644 --- a/bin/tools/benchmark.c +++ b/bin/tools/benchmark.c @@ -123,7 +123,7 @@ static void grab_frames_async (UcaCamera *camera, gpointer buffer, guint n_frames, UcaCameraTriggerSource trigger_source) { GError *error = NULL; - guint n_acquired_frames = 0; + volatile guint n_acquired_frames = 0; g_object_set (camera, "trigger-source", trigger_source, NULL); uca_camera_set_grab_func (camera, grab_callback, &n_acquired_frames); -- cgit v1.2.3