v4l2bufferpool: Respect the suggested min buffer

https://bugzilla.gnome.org/show_bug.cgi?id=720568
This commit is contained in:
Nicolas Dufresne 2013-12-05 19:34:44 -05:00
parent a77d2a64c1
commit 994c5d2c93

View file

@ -540,7 +540,7 @@ gst_v4l2_buffer_pool_start (GstBufferPool * bpool)
/* request a reasonable number of buffers when no max specified. We will
* copy when we run out of buffers */
if (max_buffers == 0)
num_buffers = 4;
num_buffers = MAX (4, min_buffers);
else
num_buffers = max_buffers;