Browse Source

v4l2: fixing mmap unmapping

fixes regression introduced in 8d9f4bb6bd

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
pull/2/head
Alan McCosh 15 years ago
committed by Rémi Denis-Courmont
parent
commit
bf0e3035cb
  1. 2
      modules/access/v4l2/video.c

2
modules/access/v4l2/video.c

@ -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);
}

Loading…
Cancel
Save