diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2014-02-14 16:20:12 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2014-02-14 16:20:12 +0100 |
commit | ab7c4e1b75c3954d4c52a31e869dc8311a2dfc04 (patch) | |
tree | 6e002e95258e4e736c58f5187ff93cf83579541b /bin/gui | |
parent | f15d21389a81f8df36b00113aed5c81d27143861 (diff) | |
parent | 961e60a89bc60e760707892539ccd7c6d283ef01 (diff) | |
download | uca-ab7c4e1b75c3954d4c52a31e869dc8311a2dfc04.tar.gz uca-ab7c4e1b75c3954d4c52a31e869dc8311a2dfc04.tar.bz2 uca-ab7c4e1b75c3954d4c52a31e869dc8311a2dfc04.tar.xz uca-ab7c4e1b75c3954d4c52a31e869dc8311a2dfc04.zip |
Merge pull request #31 from ufo-kit/add-frame-buffering
Add buffered recording to base class
Diffstat (limited to 'bin/gui')
-rw-r--r-- | bin/gui/control.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/gui/control.c b/bin/gui/control.c index d4191a1..b02c42d 100644 --- a/bin/gui/control.c +++ b/bin/gui/control.c @@ -752,6 +752,7 @@ record_frames (gpointer args) buffer = uca_ring_buffer_get_write_pointer (data->buffer); uca_camera_grab (data->camera, buffer, NULL); + uca_ring_buffer_write_advance (data->buffer); if (error == NULL) { n_frames++; @@ -949,6 +950,7 @@ download_frames (ThreadData *data) while (error == NULL) { buffer = uca_ring_buffer_get_write_pointer (data->buffer); uca_camera_grab (data->camera, buffer, &error); + uca_ring_buffer_write_advance (data->buffer); gdk_threads_enter (); gtk_adjustment_set_value (data->download_adjustment, current_frame++); |