diff mbox series

[V4L-UTILS] Fix for mismatched class/struct tags

Message ID 486af8b4-9feb-2f21-cfca-3f095db531f2@selasky.org (mailing list archive)
State New, archived
Headers show
Series [V4L-UTILS] Fix for mismatched class/struct tags | expand

Commit Message

Hans Petter Selasky April 15, 2020, 9:45 a.m. UTC
Fix for mismatched class/struct tags.

Signed-off-by: Hans Petter Selasky <hps@selasky.org>

  	fail_on_test(g_memory() == 0);
diff mbox series

Patch

diff --git a/utils/v4l2-compliance/v4l2-test-buffers.cpp 
b/utils/v4l2-compliance/v4l2-test-buffers.cpp
index 372bcfb8..a746410e 100644
--- a/utils/v4l2-compliance/v4l2-test-buffers.cpp
+++ b/utils/v4l2-compliance/v4l2-test-buffers.cpp
@@ -49,8 +49,8 @@ 
  #define VIVID_CID_QUEUE_ERROR		(VIVID_CID_VIVID_BASE + 70)
  #define VIVID_CID_REQ_VALIDATE_ERROR	(VIVID_CID_VIVID_BASE + 72)

-static struct cv4l_fmt cur_fmt;
-static struct cv4l_fmt cur_m2m_fmt;
+static cv4l_fmt cur_fmt;
+static cv4l_fmt cur_m2m_fmt;
  static int stream_from_fd = -1;
  static bool stream_use_hdr;
  static unsigned max_bytesused[VIDEO_MAX_PLANES];
@@ -357,7 +357,7 @@  int buffer::check(unsigned type, unsigned memory, 
unsigned index,
  	unsigned timestamp_src = g_timestamp_src();
  	unsigned frame_types = 0;
  	unsigned buf_states = 0;
-	const struct cv4l_fmt &fmt = is_m2m ? cur_m2m_fmt : cur_fmt;
+	const cv4l_fmt &fmt = is_m2m ? cur_m2m_fmt : cur_fmt;

  	fail_on_test(g_type() != type);