summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/v4l2_videodevice/buffer_sharing.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/v4l2_videodevice/buffer_sharing.cpp b/test/v4l2_videodevice/buffer_sharing.cpp
index 1bc478fe..cc724b22 100644
--- a/test/v4l2_videodevice/buffer_sharing.cpp
+++ b/test/v4l2_videodevice/buffer_sharing.cpp
@@ -58,6 +58,15 @@ protected:
return TestFail;
}
+ format.size.width = 320;
+ format.size.height = 180;
+
+ ret = capture_->setFormat(&format);
+ if (ret) {
+ std::cout << "Failed to set capture format" << std::endl;
+ return TestFail;
+ }
+
ret = output_->setFormat(&format);
if (ret) {
std::cout << "Failed to set output format" << std::endl;