diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-12-14 16:20:24 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-12-14 16:20:24 +0100 |
commit | bd7013de1e06a759e519ee5f9c203f4c03f25e83 (patch) | |
tree | df626c06f0320dab6aaf01f665c6a96d206312b9 /test/grab.c | |
parent | 29b0567b035ec45c1d78423a8d96821cdaf85787 (diff) | |
download | uca-bd7013de1e06a759e519ee5f9c203f4c03f25e83.tar.gz uca-bd7013de1e06a759e519ee5f9c203f4c03f25e83.tar.bz2 uca-bd7013de1e06a759e519ee5f9c203f4c03f25e83.tar.xz uca-bd7013de1e06a759e519ee5f9c203f4c03f25e83.zip |
Add: pco.4000 support
Diffstat (limited to 'test/grab.c')
-rw-r--r-- | test/grab.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/grab.c b/test/grab.c index d4f458a..bcee9aa 100644 --- a/test/grab.c +++ b/test/grab.c @@ -50,6 +50,7 @@ int main(int argc, char *argv[]) uint16_t *buffer = (uint16_t *) malloc(width * height * pixel_size); handle_error(uca_cam_start_recording(cam)); + sleep(3); uint32_t error = UCA_NO_ERROR; char filename[FILENAME_MAX]; @@ -62,8 +63,8 @@ int main(int argc, char *argv[]) fwrite(buffer, width*height, pixel_size, fp); fclose(fp); } - handle_error(uca_cam_stop_recording(cam)); + uca_destroy(u); free(buffer); |