summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-07-17 10:28:20 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-07-17 10:28:20 +0200
commit6b4893dd033f4bbb02a8e40532c57b965d133591 (patch)
tree370bbcaff7d34cebf9bd9596c5c770395acd5742
parentc852392d9e27d244ee48238e056f7dac5bc7e131 (diff)
downloadlibuca-6b4893dd033f4bbb02a8e40532c57b965d133591.tar.gz
libuca-6b4893dd033f4bbb02a8e40532c57b965d133591.tar.bz2
libuca-6b4893dd033f4bbb02a8e40532c57b965d133591.tar.xz
libuca-6b4893dd033f4bbb02a8e40532c57b965d133591.zip
Stop recording if acquisition was stopped
-rw-r--r--bin/gui/control.c7
1 files 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);