PeterBee97 commented on code in PR #7687: URL: https://github.com/apache/nuttx/pull/7687#discussion_r1033064912
########## drivers/video/video.c: ########## @@ -1161,6 +1290,24 @@ static int video_qbuf(FAR struct video_mng_s *vmng, memcpy(&container->buf, buf, sizeof(struct v4l2_buffer)); video_framebuff_queue_container(&type_inf->bufinf, container); + if (g_video_data_ops->enq_buf) + { + if (buf->memory == V4L2_MEMORY_MMAP) + { + ret = g_video_data_ops->enq_buf( + VMEM_HEAP(vmng, buf->index), vmng->buf_size); + } + else + { + ret = g_video_data_ops->enq_buf( + (uint8_t *)(uintptr_t)buf->m.userptr, buf->length); Review Comment: fixed ########## drivers/video/video.c: ########## @@ -1161,6 +1290,24 @@ static int video_qbuf(FAR struct video_mng_s *vmng, memcpy(&container->buf, buf, sizeof(struct v4l2_buffer)); video_framebuff_queue_container(&type_inf->bufinf, container); + if (g_video_data_ops->enq_buf) Review Comment: done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org