mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-07 15:02:40 +00:00
v4l2bufferpool: Preserve downstream minimum even in RW
This commit is contained in:
parent
7b8bb7188b
commit
fa6cd1d25a
1 changed files with 3 additions and 3 deletions
|
@ -388,9 +388,9 @@ gst_v4l2_buffer_pool_start (GstBufferPool * bpool)
|
||||||
|
|
||||||
switch (obj->mode) {
|
switch (obj->mode) {
|
||||||
case GST_V4L2_IO_RW:
|
case GST_V4L2_IO_RW:
|
||||||
/* we preallocate 1 buffer, this value also instructs the latency
|
/* this value also instructs the latency calculation to have min_buffers
|
||||||
* calculation to have 1 frame latency max */
|
* frame latency max */
|
||||||
num_buffers = 1;
|
num_buffers = min_buffers;
|
||||||
break;
|
break;
|
||||||
case GST_V4L2_IO_DMABUF:
|
case GST_V4L2_IO_DMABUF:
|
||||||
case GST_V4L2_IO_MMAP:
|
case GST_V4L2_IO_MMAP:
|
||||||
|
|
Loading…
Reference in a new issue