summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libcamera/pipeline/ipu3/cio2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/ipu3/cio2.cpp b/src/libcamera/pipeline/ipu3/cio2.cpp
index 885e2ca0..aa1459fb 100644
--- a/src/libcamera/pipeline/ipu3/cio2.cpp
+++ b/src/libcamera/pipeline/ipu3/cio2.cpp
@@ -185,7 +185,7 @@ CIO2Device::generateConfiguration(Size size) const
StreamConfiguration cfg;
/* If no desired size use the sensor resolution. */
- if (!size.width && !size.height)
+ if (size.isNull())
size = sensor_->resolution();
/* Query the sensor static information for closest match. */