diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-22 12:24:52 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-22 12:24:52 +0100 |
commit | 8d478b91633c9e549cbd51fb6e18428707aa0cc8 (patch) | |
tree | e6462b4d4e9b7c89c8d6f18eeaacf3b4f8c0dc5f /test/control.c | |
parent | 1bd51b02d016260772da443c0ada990f3b2e21c8 (diff) | |
download | uca-8d478b91633c9e549cbd51fb6e18428707aa0cc8.tar.gz uca-8d478b91633c9e549cbd51fb6e18428707aa0cc8.tar.bz2 uca-8d478b91633c9e549cbd51fb6e18428707aa0cc8.tar.xz uca-8d478b91633c9e549cbd51fb6e18428707aa0cc8.zip |
Fix potential bugs and use generic reorder function
Diffstat (limited to 'test/control.c')
-rw-r--r-- | test/control.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) |