From: Nicolas Dufresne Date: Sun, 4 May 2014 20:11:09 +0000 (-0400) Subject: v4l2allocator: Fix libv4l2 support X-Git-Tag: 1.3.2~61 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2dab42ce8b1950c23a741944d4e8b197cc2e765;p=platform%2Fupstream%2Fgst-plugins-good.git v4l2allocator: Fix libv4l2 support Need to include config.h, otherwise we endup directly using the ioct/mmap/munmap calls and need to vall v4l2_munmap. --- diff --git a/sys/v4l2/gstv4l2allocator.c b/sys/v4l2/gstv4l2allocator.c index 4677019..2057b17 100644 --- a/sys/v4l2/gstv4l2allocator.c +++ b/sys/v4l2/gstv4l2allocator.c @@ -19,6 +19,8 @@ * */ +#include "config.h" + #include "ext/videodev2.h" #include "gstv4l2allocator.h" #include "v4l2_calls.h" @@ -29,6 +31,7 @@ #include #include #include +#include #define GST_V4L2_MEMORY_TYPE "V4l2Memory" @@ -375,7 +378,7 @@ gst_v4l2_allocator_free (GstAllocator * gallocator, GstMemory * gmem) 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); }