summaryrefslogtreecommitdiff
path: root/test/v4l2_videodevice/v4l2_videodevice_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/v4l2_videodevice/v4l2_videodevice_test.cpp')
-rw-r--r--test/v4l2_videodevice/v4l2_videodevice_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/v4l2_videodevice/v4l2_videodevice_test.cpp b/test/v4l2_videodevice/v4l2_videodevice_test.cpp
index f23aaf8f..125aafd6 100644
--- a/test/v4l2_videodevice/v4l2_videodevice_test.cpp
+++ b/test/v4l2_videodevice/v4l2_videodevice_test.cpp
@@ -60,6 +60,9 @@ int V4L2VideoDeviceTest::init()
if (capture_->getFormat(&format))
return TestFail;
+ format.size.width = 640;
+ format.size.height = 480;
+
if (driver_ == "vimc") {
sensor_ = new CameraSensor(media_->getEntityByName("Sensor A"));
if (sensor_->init())
@@ -82,8 +85,6 @@ int V4L2VideoDeviceTest::init()
return TestFail;
}
- format.size.width = 640;
- format.size.height = 480;
if (capture_->setFormat(&format))
return TestFail;