From 8d478b91633c9e549cbd51fb6e18428707aa0cc8 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 22 Mar 2011 12:24:52 +0100 Subject: Fix potential bugs and use generic reorder function --- test/control.c | 3 +++ test/grab.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/control.c b/test/control.c index 7f013e2..2d954f9 100644 --- a/test/control.c +++ b/test/control.c @@ -75,6 +75,9 @@ void reallocate_buffers(ThreadData *td, int width, int height) td->pixels = gdk_pixbuf_get_pixels(td->pixbuf); gtk_image_set_from_pixbuf(GTK_IMAGE(td->image), td->pixbuf); memset(td->buffer, 0, num_bytes); + + if (uca_cam_alloc(td->cam, 20) != UCA_NO_ERROR) + g_print("Couldn't allocate buffer for 20 frames\n"); } static gboolean delete_event(GtkWidget *widget, GdkEvent *event, gpointer data) diff --git a/test/grab.c b/test/grab.c index 34b90c8..8c5e78c 100644 --- a/test/grab.c +++ b/test/grab.c @@ -19,7 +19,7 @@ int main(int argc, char *argv[]) /* take first camera */ struct uca_camera *cam = u->cameras; - uint32_t val = 2000; + uint32_t val = 5000; handle_error(cam->set_property(cam, UCA_PROP_EXPOSURE, &val)); val = 0; handle_error(cam->set_property(cam, UCA_PROP_DELAY, &val)); -- cgit v1.2.3