From eef6d87da46bd8dee0427f345f40e20a43887f7e Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Fri, 16 Aug 2019 17:02:50 -0500 Subject: [PATCH] d/v4l2: Minor clang-tidy fixes --- src/xrt/drivers/v4l2/v4l2_driver.c | 4 ++-- src/xrt/drivers/v4l2/v4l2_interface.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xrt/drivers/v4l2/v4l2_driver.c b/src/xrt/drivers/v4l2/v4l2_driver.c index 706b56dba..bcf4695c5 100644 --- a/src/xrt/drivers/v4l2/v4l2_driver.c +++ b/src/xrt/drivers/v4l2/v4l2_driver.c @@ -761,9 +761,9 @@ v4l2_fs_stream_run(void *ptr) V_ERROR(vid, "error: Dequeue failed!"); vid->is_running = false; break; - } else { - V_SPEW(vid, "Got frame %i", v_buf.index); } + V_SPEW(vid, "Got frame %i", v_buf.index); + uint8_t *data = vid->capture.mem[v_buf.index]; diff --git a/src/xrt/drivers/v4l2/v4l2_interface.h b/src/xrt/drivers/v4l2/v4l2_interface.h index bda309eeb..da4a260d9 100644 --- a/src/xrt/drivers/v4l2/v4l2_interface.h +++ b/src/xrt/drivers/v4l2/v4l2_interface.h @@ -63,7 +63,7 @@ struct v4l2_source_descriptor * @ingroup drv_v4l2 */ struct xrt_fs* -v4l2_fs_create(const char* device, struct xrt_fs_sink* q); +v4l2_fs_create(const char* path, struct xrt_fs_sink* sink); #ifdef __cplusplus