summaryrefslogtreecommitdiffstats
path: root/bin/tools
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-04-24 08:45:01 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-04-24 08:45:01 +0200
commit06fdc489f0cd433b20baef2d936e5d5db153af59 (patch)
tree0b03d148a1832baa71c8e052c9adcfebf43e71c1 /bin/tools
parent11201def487f90fc94cc06a163c4226aebbb92e3 (diff)
downloadlibuca-06fdc489f0cd433b20baef2d936e5d5db153af59.tar.gz
libuca-06fdc489f0cd433b20baef2d936e5d5db153af59.tar.bz2
libuca-06fdc489f0cd433b20baef2d936e5d5db153af59.tar.xz
libuca-06fdc489f0cd433b20baef2d936e5d5db153af59.zip
Fix async benchmarks
Diffstat (limited to 'bin/tools')
-rw-r--r--bin/tools/benchmark.c2
1 files changed, 1 insertions, 1 deletions
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);