From e97510491597e7f5abd7d0c822fde060d22e15cb Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 24 Jul 2012 23:37:22 +0200 Subject: Pass through the ipecamera metadata --- ipecamera/data.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ipecamera/data.c') diff --git a/ipecamera/data.c b/ipecamera/data.c index d753d43..ab3f483 100644 --- a/ipecamera/data.c +++ b/ipecamera/data.c @@ -38,7 +38,6 @@ inline static int ipecamera_decode_frame(ipecamera_t *ctx, pcilib_event_id_t eve int err = 0; size_t res; uint16_t *pixels; - UfoDecoderMeta meta; int buf_ptr = ipecamera_resolve_event_id(ctx, event_id); if (buf_ptr < 0) return PCILIB_ERROR_TIMEOUT; @@ -54,7 +53,7 @@ inline static int ipecamera_decode_frame(ipecamera_t *ctx, pcilib_event_id_t eve pixels = ctx->image + buf_ptr * ctx->image_size; memset(ctx->cmask + ctx->buffer_pos * ctx->dim.height, 0, ctx->dim.height * sizeof(ipecamera_change_mask_t)); - res = ufo_decoder_decode_frame(ctx->ipedec, ctx->buffer + buf_ptr * ctx->padded_size, ctx->raw_size, pixels, &meta); + res = ufo_decoder_decode_frame(ctx->ipedec, ctx->buffer + buf_ptr * ctx->padded_size, ctx->raw_size, pixels, &ctx->frame[buf_ptr].event.meta); if (!res) { ctx->frame[buf_ptr].event.image_broken = 1; err = PCILIB_ERROR_FAILED; -- cgit v1.2.3