mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 03:05:40 +08:00
Revert "drivers/video: Don't need update vbuf_tail in dequeue_vbuf_unsafe"
This reverts commit e15bccaa71.
Signed-off-by: yuexinyi <yuexinyi@xiaomi.com>
This commit is contained in:
@@ -70,6 +70,11 @@ static inline vbuf_container_t *dequeue_vbuf_unsafe(video_framebuff_t *fbuf)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (fbuf->mode == V4L2_BUF_MODE_RING)
|
||||||
|
{
|
||||||
|
fbuf->vbuf_tail->next = fbuf->vbuf_top->next;
|
||||||
|
}
|
||||||
|
|
||||||
fbuf->vbuf_top = fbuf->vbuf_top->next;
|
fbuf->vbuf_top = fbuf->vbuf_top->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user