v4l2bufferpool: Respect the suggested min buffer
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 6 Dec 2013 00:34:44 +0000 (19:34 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 10 Jan 2014 22:13:23 +0000 (17:13 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=720568

sys/v4l2/gstv4l2bufferpool.c

index 1a78f5a..a9529cd 100644 (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;