summaryrefslogtreecommitdiff
path: root/test/v4l2_device/formats.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/v4l2_device/formats.cpp')
-rw-r--r--test/v4l2_device/formats.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/v4l2_device/formats.cpp b/test/v4l2_device/formats.cpp
index 30b8b5c3..007e7e94 100644
--- a/test/v4l2_device/formats.cpp
+++ b/test/v4l2_device/formats.cpp
@@ -31,8 +31,7 @@ int Format::run()
return TestFail;
}
- format.width = UINT_MAX;
- format.height = UINT_MAX;
+ format.size = { UINT_MAX, UINT_MAX };
ret = capture_->setFormat(&format);
if (ret) {
cerr << "Failed to set format: image resolution is invalid: "
@@ -41,7 +40,8 @@ int Format::run()
return TestFail;
}
- if (format.width == UINT_MAX || format.height == UINT_MAX) {
+ if (format.size.width == UINT_MAX ||
+ format.size.height == UINT_MAX) {
cerr << "Failed to update image format = (UINT_MAX x UINT_MAX)"
<< endl;
return TestFail;