From 5a61fb7f25ed883eb07abe07a1d6a5a05dc5b7fc Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 4 Apr 2014 22:38:05 -0400 Subject: [PATCH] v4l2object: Set minimum buffers to 2 All the element requires at least two buffers. This is not used for RW mode. --- sys/v4l2/gstv4l2object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/v4l2/gstv4l2object.h b/sys/v4l2/gstv4l2object.h index 182cff7c3e..07723fc913 100644 --- a/sys/v4l2/gstv4l2object.h +++ b/sys/v4l2/gstv4l2object.h @@ -38,7 +38,7 @@ typedef struct _GstV4l2Xv GstV4l2Xv; #include /* size of v4l2 buffer pool in streaming case */ -#define GST_V4L2_MIN_BUFFERS 1 +#define GST_V4L2_MIN_BUFFERS 2 /* max frame width/height */ #define GST_V4L2_MAX_SIZE (1<<15) /* 2^15 == 32768 */