From cd7590bac56800586c4aadef077d1effe03b00c4 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 9 Mar 2011 11:34:30 +0100 Subject: Use correct number of bytes per pixel when allocating buffers --- src/uca-grabber.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/uca-grabber.h') diff --git a/src/uca-grabber.h b/src/uca-grabber.h index 4485b07..6ae7e8e 100644 --- a/src/uca-grabber.h +++ b/src/uca-grabber.h @@ -37,7 +37,7 @@ typedef uint32_t (*uca_grabber_get_property) (struct uca_grabber_t *grabber, enu * \brief Allocate buffers with current width, height and bitdepth * \note Subsequent changes of width and height might corrupt memory */ -typedef uint32_t (*uca_grabber_alloc) (struct uca_grabber_t *grabber, uint32_t n_buffers); +typedef uint32_t (*uca_grabber_alloc) (struct uca_grabber_t *grabber, uint32_t pixel_size, uint32_t n_buffers); /** * \brief Begin acquiring frames -- cgit v1.2.3