mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
v4l2transform: set right buffer count.
Set right buffer count to avoid one buffer.
This commit is contained in:
parent
061afa33ee
commit
c74a5d870d
1 changed files with 1 additions and 2 deletions
|
@ -893,8 +893,7 @@ gst_v4l2_transform_prepare_output_buffer (GstBaseTransform * trans,
|
|||
/* Ensure input internal pool is active */
|
||||
if (!gst_buffer_pool_is_active (pool)) {
|
||||
GstStructure *config = gst_buffer_pool_get_config (pool);
|
||||
gint min = self->v4l2output->min_buffers == 0 ? GST_V4L2_MIN_BUFFERS :
|
||||
self->v4l2output->min_buffers;
|
||||
gint min = MAX (GST_V4L2_MIN_BUFFERS, self->v4l2output->min_buffers);
|
||||
gst_buffer_pool_config_set_params (config, self->incaps,
|
||||
self->v4l2output->info.size, min, min);
|
||||
|
||||
|
|
Loading…
Reference in a new issue