From 6bc4af7d0b6b203cc98ad617bf0a39e11eec8a2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= Date: Sun, 28 Jun 2020 20:45:11 +0200 Subject: libcamera: ipu3: cio2: Use Size::isNull() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the Size::isNull() helper instead of using local code. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- src/libcamera/pipeline/ipu3/cio2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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. */ -- cgit v1.2.1