From fa458b96410401d070e06fabdf4b4490da898927 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 4 Nov 2016 11:46:11 +0100 Subject: Stop recording if test fails --- tests/test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test.c b/tests/test.c index 34a83cf..c8e89af 100644 --- a/tests/test.c +++ b/tests/test.c @@ -62,8 +62,10 @@ check_roi_size (UcaCamera *camera, guint x, guint y, guint width, guint height, for (guint i = 0; i < 30; i++) { uca_camera_grab (camera, frame, error); - if (*error != NULL) + if (*error != NULL) { + uca_camera_stop_recording (camera, NULL); goto exit_check_roi_size; + } } uca_camera_stop_recording (camera, error); -- cgit v1.2.3