From 5e20651f52b7163b25488d9c4468350d72002b58 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 22 Jun 2016 10:37:21 +0200 Subject: grab: set trigger source explicitly --- bin/tools/grab.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/tools/grab.c b/bin/tools/grab.c index e7c6eff..bcf35ae 100644 --- a/bin/tools/grab.c +++ b/bin/tools/grab.c @@ -148,14 +148,15 @@ record_frames (UcaCamera *camera, Options *opts) "sensor-bitdepth", &bits, NULL); + g_object_set (G_OBJECT (camera), "trigger-source", UCA_CAMERA_TRIGGER_SOURCE_AUTO, NULL); + pixel_size = get_bytes_per_pixel (bits); size = roi_width * roi_height * pixel_size; n_allocated = opts->n_frames > 0 ? opts->n_frames : 256; buffer = uca_ring_buffer_new (size, n_allocated); timer = g_timer_new(); - g_print("Start recording: %ix%i at %i bits/pixel\n", - roi_width, roi_height, bits); + g_print("Start recording: %ix%i at %i bits/pixel\n", roi_width, roi_height, bits); uca_camera_start_recording(camera, &error); -- cgit v1.2.3