mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
media: videobuf2-v4l2: copy user image sequence for output video
Video output device is images from user space to the driver, Sequence set to 0 default when fill vb2 buffer. For driver maybe need image sequence information. Change-Id: I34f39a98c6fa8dfa1ea2c45cfa7e6b20114236a3 Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
@@ -479,6 +479,8 @@ static int __fill_vb2_buffer(struct vb2_buffer *vb,
|
||||
*/
|
||||
vbuf->flags &= ~V4L2_BUF_FLAG_TIMECODE;
|
||||
vbuf->field = b->field;
|
||||
/* get image sequence from user space */
|
||||
vbuf->sequence = b->sequence;
|
||||
} else {
|
||||
/* Zero any output buffer flags as this is a capture buffer */
|
||||
vbuf->flags &= ~V4L2_BUFFER_OUT_FLAGS;
|
||||
|
||||
Reference in New Issue
Block a user