summaryrefslogtreecommitdiff
path: root/test/v4l2_subdevice/test_formats.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/v4l2_subdevice/test_formats.cpp')
-rw-r--r--test/v4l2_subdevice/test_formats.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/v4l2_subdevice/test_formats.cpp b/test/v4l2_subdevice/test_formats.cpp
index 5cf5d566..47f979e2 100644
--- a/test/v4l2_subdevice/test_formats.cpp
+++ b/test/v4l2_subdevice/test_formats.cpp
@@ -8,7 +8,8 @@
#include <iostream>
#include <limits.h>
-#include "v4l2_subdevice.h"
+#include "libcamera/internal/v4l2_subdevice.h"
+
#include "v4l2_subdevice_test.h"
using namespace std;
@@ -66,7 +67,7 @@ int FormatHandlingTest::run()
return TestFail;
}
- if (format.size.width == 0 || format.size.height == 0) {
+ if (format.size.isNull()) {
cerr << "Failed to update image format" << endl;
return TestFail;
}
@@ -74,4 +75,4 @@ int FormatHandlingTest::run()
return TestPass;
}
-TEST_REGISTER(FormatHandlingTest);
+TEST_REGISTER(FormatHandlingTest)