From 2588b69abca878743b89a11fa494662c1e7f98c6 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 28 Oct 2018 02:39:53 +0200 Subject: Don't wait for new frame on stop_recording --- uca-ufo-camera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uca-ufo-camera.c b/uca-ufo-camera.c index 61bf8a6..40bc13a 100644 --- a/uca-ufo-camera.c +++ b/uca-ufo-camera.c @@ -378,7 +378,7 @@ uca_ufo_camera_stop_recording (UcaCamera *camera, GError **error) } /* read stale frames ... */ - while (!pcilib_get_next_event (priv->handle, priv->timeout, &event_id, sizeof (pcilib_event_info_t), &event_info)) + while (!pcilib_get_next_event (priv->handle, PCILIB_TIMEOUT_IMMEDIATE, &event_id, sizeof (pcilib_event_info_t), &event_info)) ; err = pcilib_stop (priv->handle, PCILIB_EVENT_FLAGS_DEFAULT); -- cgit v1.2.3