From 66ca1b2280a918d3bd7c7ce09ec22d485be34666 Mon Sep 17 00:00:00 2001 From: Edgard Lima Date: Thu, 15 Nov 2007 12:22:10 +0000 Subject: Always copy buffers by default (handle safer with bugged drivers) and added a property to make it possible to use mma... Original commit message from CVS: Always copy buffers by default (handle safer with bugged drivers) and added a property to make it possible to use mmap effectively (no copy if possible) when application wants to. Fixes: #480557. --- sys/v4l2/gstv4l2src.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/v4l2/gstv4l2src.h') diff --git a/sys/v4l2/gstv4l2src.h b/sys/v4l2/gstv4l2src.h index f4677458..ae7aa74e 100644 --- a/sys/v4l2/gstv4l2src.h +++ b/sys/v4l2/gstv4l2src.h @@ -101,6 +101,9 @@ struct _GstV4l2Src gboolean use_mmap; guint32 frame_byte_size; + /* if the buffer will be or not used from directly mmap */ + gboolean always_copy; + /* True if we want to stop */ gboolean quit; gboolean is_capturing; -- cgit