debug: add more logs for VIDIOC_QBUF
This commit is contained in:
parent
67a43e7bc9
commit
5a3085a2f6
@ -119,7 +119,13 @@ int v4l2_buffer_enqueue(buffer_t *buf, const char *who)
|
||||
v4l2_buf.timestamp.tv_sec = buf->captured_time_us / (1000LL * 1000LL);
|
||||
v4l2_buf.timestamp.tv_usec = buf->captured_time_us % (1000LL * 1000LL);
|
||||
|
||||
ERR_IOCTL(buf, buf->buf_list->v4l2->dev_fd, VIDIOC_QBUF, &v4l2_buf, "Can't queue buffer.");
|
||||
ERR_IOCTL(
|
||||
buf, buf->buf_list->v4l2->dev_fd, VIDIOC_QBUF, &v4l2_buf,
|
||||
"Can't queue buffer (type=%d, index=%d, keyframe=%d, mmap=%d, mplanes=%d, bytesused=%d, dmafd=%d).",
|
||||
buf->buf_list->v4l2->type, buf->index, buf->flags.is_keyframe,
|
||||
buf->buf_list->do_mmap, buf->buf_list->v4l2->do_mplanes, v4l2_buf.bytesused,
|
||||
buf->dma_source ? buf->dma_source->dma_fd : -1
|
||||
);
|
||||
|
||||
return 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user