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:
yuexinyi
2023-07-26 16:32:06 +08:00
committed by Xiang Xiao
parent 2645e59901
commit baefa5fa6b
+5
View File
@@ -70,6 +70,11 @@ static inline vbuf_container_t *dequeue_vbuf_unsafe(video_framebuff_t *fbuf)
}
else
{
if (fbuf->mode == V4L2_BUF_MODE_RING)
{
fbuf->vbuf_tail->next = fbuf->vbuf_top->next;
}
fbuf->vbuf_top = fbuf->vbuf_top->next;
}