diff --git a/sys/v4l2/gstv4l2videodec.c b/sys/v4l2/gstv4l2videodec.c index 39b4fd19a8..6f26319efe 100644 --- a/sys/v4l2/gstv4l2videodec.c +++ b/sys/v4l2/gstv4l2videodec.c @@ -621,8 +621,12 @@ gst_v4l2_video_dec_handle_frame (GstVideoDecoder * decoder, /* Ensure input internal pool is active */ if (!gst_buffer_pool_is_active (pool)) { GstStructure *config = gst_buffer_pool_get_config (pool); + guint min = MAX (self->v4l2output->min_buffers, + GST_V4L2_MIN_BUFFERS (self->v4l2output)); + guint max = VIDEO_MAX_FRAME; + gst_buffer_pool_config_set_params (config, self->input_state->caps, - self->v4l2output->info.size, 2, 2); + self->v4l2output->info.size, min, max); /* There is no reason to refuse this config */ if (!gst_buffer_pool_set_config (pool, config))