diff options
Diffstat (limited to 'bin/gui/control.c')
-rw-r--r-- | bin/gui/control.c | 7 |
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); |