Need to include config.h, otherwise we endup directly using the
ioct/mmap/munmap calls and need to vall v4l2_munmap.
*
*/
+#include "config.h"
+
#include "ext/videodev2.h"
#include "gstv4l2allocator.h"
#include "v4l2_calls.h"
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
+#include <sys/mman.h>
#define GST_V4L2_MEMORY_TYPE "V4l2Memory"
switch (allocator->memory) {
case V4L2_MEMORY_MMAP:
if (mem->data) {
- munmap (mem->data, group->planes[mem->plane].length);
+ v4l2_munmap (mem->data, group->planes[mem->plane].length);
} else if (group->planes[mem->plane].m.fd > 0) {
close (group->planes[mem->plane].m.fd);
}