Commit 06bf8003 authored by Éric Thiébaut's avatar Éric Thiébaut
Browse files

Initialize acquisition buffers

parent 91d31e5c
......@@ -202,6 +202,12 @@ static tao_status on_initialize(
// The contextual data is the device information.
FPRODEVICEINFO* devinfo = cam->ctx;
// No acquisition buffers yet.
dev->bufsiz = 0;
for (int i = 0; i < NBUFS; ++i) {
dev->bufs[i] = NULL;
}
// Open the camera.
dev->handle = -1;
FLI_CALL(FPROCam_Open,(devinfo, &dev->handle), return TAO_ERROR);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment