v4l2object: Set minimum buffers to 2

All the element requires at least two buffers. This is not used for RW mode.
This commit is contained in:
Nicolas Dufresne 2014-04-04 22:38:05 -04:00
parent 3393083497
commit 5a61fb7f25

View file

@ -38,7 +38,7 @@ typedef struct _GstV4l2Xv GstV4l2Xv;
#include <gstv4l2bufferpool.h>
/* 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 */