Commit d03bcba3 authored by Nicolas Dufresne's avatar Nicolas Dufresne

v4l2bufferpool: Workaround elements not requesting any buffers

This is a workaround for element that don't request buffers when
they should.
parent c541e56b
......@@ -718,6 +718,12 @@ gst_v4l2_buffer_pool_start (GstBufferPool * bpool)
max_latency = min_buffers;
/* FIXME Encoder don't negotiate amount of buffers. If we can't grow the
* pool, or the minimum is at V4L2 maximum, enabled copy on threshold
* */
if (!can_allocate || min_buffers == VIDEO_MAX_FRAME)
copy_threshold = min_latency;
pool->size = size;
pool->copy_threshold = copy_threshold;
pool->max_latency = max_latency;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment