summaryrefslogtreecommitdiffstats
path: root/uca-ufo-camera.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-10-28 02:39:53 +0200
committerSuren A. Chilingaryan <csa@suren.me>2018-10-28 02:39:53 +0200
commit2588b69abca878743b89a11fa494662c1e7f98c6 (patch)
tree2bd4530e70da8240b291e155e9c98815f1bb1a94 /uca-ufo-camera.c
parent358a84bb97226f60fb888d02e7e7dd1236708d2d (diff)
downloaduca-ufo-2588b69abca878743b89a11fa494662c1e7f98c6.tar.gz
uca-ufo-2588b69abca878743b89a11fa494662c1e7f98c6.tar.bz2
uca-ufo-2588b69abca878743b89a11fa494662c1e7f98c6.tar.xz
uca-ufo-2588b69abca878743b89a11fa494662c1e7f98c6.zip
Don't wait for new frame on stop_recording
Diffstat (limited to 'uca-ufo-camera.c')
-rw-r--r--uca-ufo-camera.c2
1 files changed, 1 insertions, 1 deletions
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);