From 426687c80bbc52474a53939d7034d45180adc1f5 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 16 Mar 2011 12:24:35 +0100 Subject: Remember current frame number and remove frame dimensions in dummy.c --- src/grabbers/me4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/grabbers') diff --git a/src/grabbers/me4.c b/src/grabbers/me4.c index 7bb687b..23eed29 100644 --- a/src/grabbers/me4.c +++ b/src/grabbers/me4.c @@ -131,7 +131,7 @@ uint32_t uca_me4_stop_acquire(struct uca_grabber_t *grabber) return UCA_NO_ERROR; } -uint32_t uca_me4_grab(struct uca_grabber_t *grabber, void **buffer) +uint32_t uca_me4_grab(struct uca_grabber_t *grabber, void **buffer, uint32_t *frame_number) { int32_t last_frame; if (grabber->asynchronous) @@ -142,6 +142,7 @@ uint32_t uca_me4_grab(struct uca_grabber_t *grabber, void **buffer) if (last_frame <= 0) return UCA_ERR_PROP_GENERAL; + *frame_number = last_frame; *buffer = Fg_getImagePtrEx(GET_FG(grabber), last_frame, PORT_A, GET_MEM(grabber)); return UCA_NO_ERROR; } -- cgit v1.2.3