mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 11:02:31 +02:00
Merge pull request #292 from vicamo/for-upstream/accommodate-to-v4l2-field-rename
v4l2: accommodate to struct filed rename of vb2_buffer::min_buffers_needed
This commit is contained in:
@@ -683,7 +683,11 @@ int fthd_v4l2_register(struct fthd_private *dev_priv)
|
||||
q->mem_ops = &vb2_dma_sg_memops;
|
||||
q->buf_struct_size = 0;//sizeof(struct vpif_cap_buffer);
|
||||
q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,8,0)
|
||||
q->min_buffers_needed = 1;
|
||||
#else
|
||||
q->min_queued_buffers = 1;
|
||||
#endif
|
||||
q->lock = &dev_priv->vb2_queue_lock;
|
||||
|
||||
ret = vb2_queue_init(q);
|
||||
|
||||
Reference in New Issue
Block a user