From 961e60a89bc60e760707892539ccd7c6d283ef01 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 13 Feb 2014 14:54:34 +0100 Subject: Fix #28: Add buffered recording to base class This change adds new properties ::buffered and ::num-buffers to the base class. If ::buffered is TRUE, uca_camera_start_recording will spawn a new thread which will call the camera-specific grab. Any call to uca_camera_grab will return the next item from the ring buffer. --- bin/tools/grab.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bin/tools') diff --git a/bin/tools/grab.c b/bin/tools/grab.c index a3dd544..11f8a83 100644 --- a/bin/tools/grab.c +++ b/bin/tools/grab.c @@ -170,6 +170,7 @@ record_frames (UcaCamera *camera, Options *opts) gdouble elapsed; uca_camera_grab (camera, uca_ring_buffer_get_write_pointer (buffer), &error); + uca_ring_buffer_write_advance (buffer); if (error != NULL) return error; -- cgit v1.2.3