From 6b4893dd033f4bbb02a8e40532c57b965d133591 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 17 Jul 2013 10:28:20 +0200 Subject: Stop recording if acquisition was stopped --- bin/gui/control.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/gui/control.c b/bin/gui/control.c index 9653bb3..1e895a5 100644 --- a/bin/gui/control.c +++ b/bin/gui/control.c @@ -284,8 +284,11 @@ record_frames (gpointer args) print_and_free_error (&error); } - data->state = IDLE; - set_tool_button_state (data); + if (n_max > 0) { + uca_camera_stop_recording (data->camera, NULL); + data->state = IDLE; + set_tool_button_state (data); + } n_frames = ring_buffer_get_num_blocks (data->buffer); -- cgit v1.2.3