Commit bf0e3035 authored by Alan McCosh's avatar Alan McCosh Committed by Rémi Denis-Courmont

v4l2: fixing mmap unmapping

fixes regression introduced in 8d9f4bb6Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 92a7099b
......@@ -663,7 +663,7 @@ void StopMmap (int fd, struct buffer_t *bufv, uint32_t bufc)
/* STREAMOFF implicitly dequeues all buffers */
v4l2_ioctl (fd, VIDIOC_STREAMOFF, &type);
for (uint32_t i = bufc; i < bufc; i++)
for (uint32_t i = 0; i < bufc; i++)
v4l2_munmap (bufv[i].start, bufv[i].length);
free (bufv);
}
Markdown is supported
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