Create private data for buffer_list_v4l2_t
This commit is contained in:
@ -12,9 +12,9 @@ int v4l2_buffer_list_refresh_states(buffer_list_t *buf_list)
|
||||
struct v4l2_buffer v4l2_buf = {0};
|
||||
struct v4l2_plane v4l2_plane = {0};
|
||||
|
||||
v4l2_buf.type = buf_list->v4l2.type;
|
||||
v4l2_buf.type = buf_list->v4l2->type;
|
||||
|
||||
if (buf_list->v4l2.do_mplanes) {
|
||||
if (buf_list->v4l2->do_mplanes) {
|
||||
v4l2_buf.length = 1;
|
||||
v4l2_buf.m.planes = &v4l2_plane;
|
||||
}
|
||||
@ -30,7 +30,7 @@ int v4l2_buffer_list_refresh_states(buffer_list_t *buf_list)
|
||||
|
||||
E_XIOCTL(buf_list, buf_list->device->v4l2->dev_fd, VIDIOC_QUERYBUF, &v4l2_buf, "Can't query buffer (flags=%08x)", i);
|
||||
E_LOG_INFO(buf_list, "Buffer: %d, Flags: %08x. Offset: %d", i, v4l2_buf.flags,
|
||||
buf_list->v4l2.do_mplanes ? v4l2_plane.m.mem_offset : v4l2_buf.m.offset);
|
||||
buf_list->v4l2->do_mplanes ? v4l2_plane.m.mem_offset : v4l2_buf.m.offset);
|
||||
}
|
||||
|
||||
error:
|
||||
|
Reference in New Issue
Block a user